Skip to content

Instantly share code, notes, and snippets.

@bmizerany
Created May 15, 2010 01:47
Show Gist options
  • Save bmizerany/401926 to your computer and use it in GitHub Desktop.
Save bmizerany/401926 to your computer and use it in GitHub Desktop.
node> c = require("crypto")
{ createCredentials: [Function]
, Credentials: [Function]
, Hash: [Function]
, createHash: [Function]
, Sign: [Function]
, createSign: [Function]
, Verify: [Function]
, createVerify: [Function]
}
node> c.createHmac("sha256", "foo")
TypeError: Object #<an Object> has no method 'createHmac'
at REPLServer.<anonymous> (eval at <anonymous> (repl:68:28))
at REPLServer.readline (repl:68:19)
at Stream.<anonymous> (repl:29:19)
at Stream.emit (events:25:26)
at IOWatcher.callback (net:372:16)
at node.js:176:9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment