From 9e9bc00df17181845ab06d38e6e57493359507f5 Mon Sep 17 00:00:00 2001 From: lmiguelmh Date: Sun, 10 Nov 2019 12:10:23 -0500 Subject: [PATCH] pbkdf2 signature has changed on nodejs10.x https://github.com/danilop/LambdAuth/issues/71 --- LambdAuthLogin/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LambdAuthLogin/index.js b/LambdAuthLogin/index.js index 885b382..297d96f 100644 --- a/LambdAuthLogin/index.js +++ b/LambdAuthLogin/index.js @@ -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')); });