Skip to content

Commit

Permalink
pbkdf2 signature has changed on nodejs10.x
Browse files Browse the repository at this point in the history
In response to danilop#71
  • Loading branch information
lmiguelmh authored Nov 10, 2019
1 parent 5df0215 commit 0f702b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LambdAuthChangePassword/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 0f702b1

Please sign in to comment.