You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/dylan/tol-node/tol/server.js:9
var Crypto = (require 'cryptojs').Crypto // Same as the readme?
^^^^^^^^^^
SyntaxError: Unexpected string
Almost seems like I didn't install it, but it's there. I tried npm install just in case dependencies got lost, but all seems well. Running on Ubuntu. Any thoughts?
PS -- Although it failed at the init, I'm trying to do this:
var hash = Crypto.enc.Base64.stringify( Crypto.HmacSHA256(nonce, secret) );
This is how I did it with cryptojs in non-node .. I can do the same, right?
The text was updated successfully, but these errors were encountered:
package.json
"cryptojs": "^2.5.3",
$ node server.js
Almost seems like I didn't install it, but it's there. I tried npm install just in case dependencies got lost, but all seems well. Running on Ubuntu. Any thoughts?
PS -- Although it failed at the init, I'm trying to do this:
var hash = Crypto.enc.Base64.stringify( Crypto.HmacSHA256(nonce, secret) );
This is how I did it with cryptojs in non-node .. I can do the same, right?
The text was updated successfully, but these errors were encountered: