node-pbkdf2
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -70,3 +70,3 @@ var crypto = require('crypto'); | ||
crypto.pbkdf2(password, randomSalt, self.iterations, self.derivedKeyLength, function (err, derivedKey) { | ||
crypto.pbkdf2(password, randomSalt, self.iterations, self.derivedKeyLength, 'sha512', function (err, derivedKey) { | ||
if (err) { return callback(err); } | ||
@@ -96,3 +96,3 @@ | ||
// Use the encrypted password's parameter to hash the candidate password | ||
crypto.pbkdf2(password, encryptedPassword.salt, encryptedPassword.iterations, encryptedPassword.derivedKeyLength, function (err, derivedKey) { | ||
crypto.pbkdf2(password, encryptedPassword.salt, encryptedPassword.iterations, encryptedPassword.derivedKeyLength, 'sha512', function (err, derivedKey) { | ||
if (err) { return callback(err); } | ||
@@ -99,0 +99,0 @@ |
{ | ||
"name": "node-pbkdf2", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Louis Chatriot", |
node-pbkdf2 | ||
=========== | ||
**IMPORTANT: this library is not maintained anymore, please don't submit anymore pull requests except for bugfixes** | ||
Wrapper to hash and check password with Node's crypto module's built-in pbkdf2. | ||
@@ -33,3 +35,3 @@ | ||
hasher('supersecret', encryptedPassword, function (err, passwordIsCorrect) { | ||
// passwordIsCorrect is true | ||
// You can guess what information passwordIsCorrect holds easily :) | ||
}); | ||
@@ -36,0 +38,0 @@ ``` |
13529
43