Skip to content

Commit 53aa112

Browse files
authored
pbkdf2 signature has changed on nodejs10.x
danilop#71
1 parent 0f702b1 commit 53aa112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LambdAuthCreateUser/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function computeHash(password, salt, fn) {
2222
crypto.randomBytes(len, function(err, salt) {
2323
if (err) return fn(err);
2424
salt = salt.toString('base64');
25-
crypto.pbkdf2(password, salt, iterations, len, function(err, derivedKey) {
25+
crypto.pbkdf2(password, salt, iterations, len, 'sha1', function(err, derivedKey) {
2626
if (err) return fn(err);
2727
fn(null, salt, derivedKey.toString('base64'));
2828
});

0 commit comments

Comments
 (0)