Skip to content

Commit

Permalink
add mandatory digest argument
Browse files Browse the repository at this point in the history
  • Loading branch information
lesion committed Aug 2, 2017
1 parent 04ead4c commit cc065ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stores/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exports.hashPassword = function(password, config, callback) {
keylen: 64
};

crypto.pbkdf2(password, config.salt, parseInt(config.work,10), parseInt(config.keylen,10), function(error, key) {
crypto.pbkdf2(password, config.salt, parseInt(config.work,10), parseInt(config.keylen,10), 'sha512', function(error, key) {
config.key = new Buffer(key, 'binary').toString('base64');
callback(error, config);
});
Expand Down

0 comments on commit cc065ec

Please sign in to comment.