Skip to content

Commit

Permalink
pbkdf2 signature has changed on nodejs10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiguelmh authored Nov 10, 2019
1 parent 9e9bc00 commit 1afd870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LambdAuthResetPassword/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function computeHash(password, salt, fn) {
var iterations = 4096;

if (3 == arguments.length) {
crypto.pbkdf2(password, salt, iterations, len, function(err, derivedKey) {
crypto.pbkdf2(password, salt, iterations, len, 'sha1', function(err, derivedKey) {
if (err) return fn(err);
else fn(null, salt, derivedKey.toString('base64'));
});
Expand Down

0 comments on commit 1afd870

Please sign in to comment.