-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
digest string in crypto.pbkdf2 #71
Comments
According the Nodejs documentation for pbkdf2 function:
So, I think the problem is that init.sh is specifying an old version of Nodejs and in new versions they changed the signature of Lines 140 to 145 in ef2e828
|
In response to danilop#71
I notice an error using the:
LambdAuthCreateUser
this piece of code:
crypto.pbkdf2(password, salt, iterations, len, function(err, derivedKey) {
if (err) return fn(err);
fn(null, salt, derivedKey.toString('base64'));
});
don't work if I don't add after len a digest string, for example null
crypto.pbkdf2(password, salt, iterations, len, null, function(err, derivedKey) {
if (err) return fn(err);
fn(null, salt, derivedKey.toString('base64'));
});
Is it just my problem?
The text was updated successfully, but these errors were encountered: