Skip to content

Commit

Permalink
Updated PBKDF2PasswordHasher.
Browse files Browse the repository at this point in the history
  • Loading branch information
kalvish21 committed Aug 25, 2018
1 parent 650f6cb commit dfe2693
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ module.exports.getHasher = function(algorithm) {

module.exports.PBKDF2PasswordHasher = function() {
this.algorithm = "pbkdf2_sha256";
this.iterations = 36000;
this.iterations = 120000;
this.len = 32;

this.salt = function() {
Expand Down Expand Up @@ -195,7 +195,7 @@ module.exports.Argon2PasswordHasher = function() {

module.exports.PBKDF2SHA1PasswordHasher = function() {
this.algorithm = "pbkdf2_sha1";
this.iterations = 36000;
this.iterations = 120000;
this.len = 20;

this.salt = function() {
Expand Down Expand Up @@ -237,7 +237,6 @@ module.exports.PBKDF2SHA1PasswordHasher = function() {
module.exports.BCryptSHA256PasswordHasher = function() {
this.algorithm = "bcrypt_sha256";
this.iterations = 12;
this.len = 32;

this.salt = function() {
return bcrypt.genSaltSync(this.iterations);
Expand Down Expand Up @@ -272,7 +271,6 @@ module.exports.BCryptSHA256PasswordHasher = function() {
module.exports.BCryptPasswordHasher = function() {
this.algorithm = "bcrypt";
this.iterations = 12;
this.len = 32;

this.salt = function() {
return bcrypt.genSaltSync(this.iterations);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-django-hashers",
"version": "1.1.4",
"version": "1.1.5",
"dependencies": {
"argon2-ffi": "^1.1.0",
"assert": "^1.4.1",
Expand Down

0 comments on commit dfe2693

Please sign in to comment.