Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
v3.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Cretezy committed Sep 9, 2018
1 parent d0eaccc commit b687386
Show file tree
Hide file tree
Showing 3 changed files with 2,145 additions and 1,823 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scrypt-async-modern",
"version": "3.0.6",
"version": "3.0.7",
"description": "Fast \"async\" scrypt implementation in modern JavaScript.",
"main": "dist/index.js",
"scripts": {
Expand All @@ -13,7 +13,7 @@
"prepack": "noderize-scripts clean && noderize-scripts build --env production"
},
"devDependencies": {
"@noderize/scripts": "^0.3.11"
"@noderize/scripts": "^0.7.5"
},
"repository": {
"type": "git",
Expand All @@ -35,6 +35,6 @@
"useTabs": true
},
"dependencies": {
"@noderize/runtime": "^0.3.11"
"@noderize/runtime": "^0.7.5"
}
}
7 changes: 3 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,9 @@ function run(

function PBKDF2_HMAC_SHA256_OneIter(password, salt, dkLen) {
// compress password if it's longer than hash block length
if(password.length > 64)
{
// coerces the structure into an array type if it lacks support for the .push operation
password = SHA256(password.push ? password : [...password])
if (password.length > 64) {
// coerces the structure into an array type if it lacks support for the .push operation
password = SHA256(password.push ? password : [...password]);
}

let i,
Expand Down
Loading

0 comments on commit b687386

Please sign in to comment.