shaneMangudi / bcrypt-nodejs

Native implementation of bcrypt for NodeJS
Other
574 stars 69 forks source link

Which Cypto? #2

Closed happyspace closed 11 years ago

happyspace commented 11 years ago

Wonderful thanks! I too have had trouble installing all of the Windows dependencies. Concerning dependencies which “crypto” does bCrypt.js depend on? Sorry if this should be obvious… Would it be possible to include this crypto as part of the npm package? Thanks!

NicolasPelletier commented 11 years ago

As far as I can see in the code, the "crypto" it requires is the crypto module which is already part of node.js: http://nodejs.org/api/crypto.html

After running "npm install bcrypt-nodejs", I did not see any dependency modules installed. I was able to run an example without anything else installed.

So overall, I think this module does not depends on anything except Node, which seems to be what the author intended.

happyspace commented 11 years ago

Thank you! Yes user error. I was not using the correct require.