We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5df0215 commit 0f702b1Copy full SHA for 0f702b1
LambdAuthChangePassword/index.js
@@ -14,7 +14,7 @@ function computeHash(password, salt, fn) {
14
var iterations = 4096;
15
16
if (3 == arguments.length) {
17
- crypto.pbkdf2(password, salt, iterations, len, function(err, derivedKey) {
+ crypto.pbkdf2(password, salt, iterations, len, 'sha1', function(err, derivedKey) {
18
if (err) return fn(err);
19
else fn(null, salt, derivedKey.toString('base64'));
20
});
0 commit comments