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

Hash algorithm now deprecated in Node 6.0 #1

Closed
colinskow opened this issue May 15, 2016 · 2 comments
Closed

Hash algorithm now deprecated in Node 6.0 #1

colinskow opened this issue May 15, 2016 · 2 comments

Comments

@colinskow
Copy link

Running this will now generate:
(node:44527) DeprecationWarning: crypto.pbkdf2 without specifying a digest is deprecated. Please specify a digest

The default digest is 'sha1'. (I checked the Node source code to make sure.) You need to specify it explicitly or this library will no longer work in Node 7.

crypto.pbkdf2(pwd, salt, iterations, keylen, 'sha1', function(err, hash){
        if (err) return cb(err);
        cb(null, salt, hash.toString(encoding));
      });
@ybian
Copy link

ybian commented Jul 26, 2016

Hey @colinskow I'm running into this same issue after upgrading to NodeJS 6 with superlogin. Nice to see you here. ;-) Unfortunately there is no response after more than 2 months. This library seems not maintained any more. Maybe you should consider dropping dependency on this (fork it, write the util function by self, or use something else)?

@colinskow
Copy link
Author

We are fine until Node 7 comes out. I will fork it and fix it--very simple.

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

2 participants