Skip to content

Commit

Permalink
fix: add digest to hash-password
Browse files Browse the repository at this point in the history
  • Loading branch information
Terreii authored and gr2m committed Jun 11, 2017
1 parent bb5e670 commit 8e84fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hash-password.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var crypto = require('crypto')

function hashPassword (password, salt, iterations) {
return new Promise(function (resolve, reject) {
crypto.pbkdf2(password, salt, iterations, 20, function (err, derivedKey) {
crypto.pbkdf2(password, salt, iterations, 20, 'sha1', function (err, derivedKey) {
if (err) {
reject(err)
} else {
Expand Down

0 comments on commit 8e84fdb

Please sign in to comment.