From 53aa1121401c17493e47a4be753778bc2ac62042 Mon Sep 17 00:00:00 2001 From: lmiguelmh Date: Sun, 10 Nov 2019 12:09:48 -0500 Subject: [PATCH] pbkdf2 signature has changed on nodejs10.x https://github.com/danilop/LambdAuth/issues/71 --- LambdAuthCreateUser/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LambdAuthCreateUser/index.js b/LambdAuthCreateUser/index.js index 84059d2..4b22526 100644 --- a/LambdAuthCreateUser/index.js +++ b/LambdAuthCreateUser/index.js @@ -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')); });