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 53aa112 commit 9e9bc00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LambdAuthLogin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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 9e9bc00

Please sign in to comment.