We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f702b1 commit 53aa112Copy full SHA for 53aa112
LambdAuthCreateUser/index.js
@@ -22,7 +22,7 @@ function computeHash(password, salt, fn) {
22
crypto.randomBytes(len, function(err, salt) {
23
if (err) return fn(err);
24
salt = salt.toString('base64');
25
- crypto.pbkdf2(password, salt, iterations, len, function(err, derivedKey) {
+ crypto.pbkdf2(password, salt, iterations, len, 'sha1', function(err, derivedKey) {
26
27
fn(null, salt, derivedKey.toString('base64'));
28
});
0 commit comments