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 0f702b1 commit 53aa112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LambdAuthCreateUser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function computeHash(password, salt, fn) {
crypto.randomBytes(len, function(err, salt) {
if (err) return fn(err);
salt = salt.toString('base64');
crypto.pbkdf2(password, salt, iterations, len, function(err, derivedKey) {
crypto.pbkdf2(password, salt, iterations, len, 'sha1', function(err, derivedKey) {
if (err) return fn(err);
fn(null, salt, derivedKey.toString('base64'));
});
Expand Down

0 comments on commit 53aa112

Please sign in to comment.