We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Error message: The "digest" argument must be one of type string or null. Received type undefined
Solution: Update [./utility/hash.js]
exports.hash = function (pwd, salt, fn) { if (3 == arguments.length) { crypto.pbkdf2(pwd, salt, iterations, len, **null**, function (err, hash) { fn(err, hash.toString('base64')); }); } else { fn = salt; crypto.randomBytes(len, function (err, salt) { if (err) { return fn(err); } salt = salt.toString('base64'); crypto.pbkdf2(pwd, salt, iterations, len, **null**, function (err, hash) { if (err) return fn(err); fn(null, salt, hash.toString('base64')); }); }); } };
Added a null value as default value of 'hex' variable
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Error message: The "digest" argument must be one of type string or null. Received type undefined
Solution:
Update [./utility/hash.js]
Added a null value as default value of 'hex' variable
The text was updated successfully, but these errors were encountered: