In fact I now realise that the documentation is written so that it
tells you what the default values of parameters are, so yes I was
being somewhat dumb, especially since I work in Javascript most of my
time! In my defence:
1) The documentation does not make that clear (more examples would
help clarify that). I suspect this aspect of the documentation may
confuse others.
2) I was trying to get this working quickly last night and didn't want
to plough through copious amounts of documentation in detail. So I
just took what I read at face value , did some cut and pasting and.
woohoo it just worked :-) Now, in the cold light of morning, what I
used does look pretty daft :-)
To be honest the documentation on the crypto module is pretty,
well....cryptic. Some examples would definitely help, but then that's
true of many of the modules and I know how much time and effort it
takes to write examples. However most developers, from my experience,
work from examples first and then follow-up by consulting the
documentation which then makes perfect sense.
Anyway the bottom line is I now have the critical piece I needed for
my project in place. The rest should hopefully be pretty
straightforward.
On 27 Sep, 08:12, rtweed <
rob.tw...@gmail.com> wrote:
> Yes I used the documentation athttp://
nodejs.org/api.html