Skip to content

Commit

Permalink
fix: pass digest to pbkdf2 to get rid of node 6 deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehner authored and gr2m committed Nov 8, 2016
1 parent 2d27a8d commit 44d694d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/validate-password.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = validatePassword
var crypto = require('crypto')

function validatePassword (password, salt, iterations, derivedKey, callback) {
crypto.pbkdf2(password, salt, iterations, 20, function (error, derivedKeyCheck) {
crypto.pbkdf2(password, salt, iterations, 20, 'sha1', function (error, derivedKeyCheck) {
if (error) {
return callback(error)
}
Expand Down

0 comments on commit 44d694d

Please sign in to comment.