Skip to content

Commit

Permalink
Merge 62a38d2 into f39eb94
Browse files Browse the repository at this point in the history
  • Loading branch information
mvila committed Oct 4, 2017
2 parents f39eb94 + 62a38d2 commit 540db47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Password.prototype.hash = function (password, salt, iterations, length) {
length = length || this.length
return (salt ? Promise.resolve(salt) : this.salt().then(toBase64))
.then(function (_salt) {
return crypto.pbkdf2(password, salt = _salt, iterations, length)
return crypto.pbkdf2(password, salt = _salt, iterations, length, 'sha1')
})
.then(function (hash) {
return [
Expand Down

0 comments on commit 540db47

Please sign in to comment.