Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node.js 'crypto' module does not recognize 'createHmac' method #875

Closed
fabiocionini opened this issue Jul 15, 2013 · 3 comments
Closed

node.js 'crypto' module does not recognize 'createHmac' method #875

fabiocionini opened this issue Jul 15, 2013 · 3 comments

Comments

@fabiocionini
Copy link

Current version of node-webkit seems to have a problem with the Crypto module in node.js:

calling crypto.createHmac, i.e.

var crypto = require('crypto');
var signature = crypto.createHmac('sha1', 'secret').update('string').digest('base64');

results in:

Uncaught TypeError: Object #<Crypto> has no method 'createHmac' 
@Ydro
Copy link

Ydro commented Jul 15, 2013

Because chrome already has a object named cypto. So you need rename it.
See: #713

@fabiocionini
Copy link
Author

@Ydro thanks!

@Mithgol
Copy link
Contributor

Mithgol commented Jul 16, 2013

@fabiocionini See also other changes related to Node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants