Comparing version 5.4.0 to 5.4.1
@@ -5,2 +5,6 @@ # Change Log | ||
## [5.4.1] - 2015-10-12 | ||
### Fixed | ||
- Corrected Hash API documentation in README | ||
## [5.4.0] - 2015-10-09 | ||
@@ -7,0 +11,0 @@ ### Fixed |
21
index.js
@@ -200,2 +200,9 @@ "use strict"; | ||
// Check resulting buffer is not empty | ||
if (!args[0].length) { | ||
var error = new Error("Input KDF is empty"); | ||
error.propertyValue = args[0]; | ||
throw error; | ||
} | ||
// | ||
@@ -221,2 +228,9 @@ // Check Key | ||
// Check resulting key is not empty | ||
if (!args[1].length) { | ||
var error = new Error("Input key is empty"); | ||
error.propertyValue = args[1]; | ||
throw error; | ||
} | ||
return args; | ||
@@ -241,2 +255,9 @@ } | ||
// Check resulting key is not empty | ||
if (!args[0].length) { | ||
var error = new Error("Input key is empty"); | ||
error.propertyValue = args[1]; | ||
throw error; | ||
} | ||
// | ||
@@ -243,0 +264,0 @@ // Check Scrypt Parameters object |
{ | ||
"name": "scrypt", | ||
"description": "The scrypt crypto library for NodeJS", | ||
"version": "5.4.0", | ||
"version": "5.4.1", | ||
"license": "zlib", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -141,3 +141,3 @@ # Scrypt For Node | ||
scrypt.hashSync <br> | ||
scrypt.hash(key, paramsObject, output_length, function(err, obj){}) | ||
scrypt.hash(key, paramsObject, output_length, salt, function(err, obj){}) | ||
@@ -147,2 +147,3 @@ * key - [REQUIRED] - a string (or buffer) representing the key (password) that is to be checked. | ||
* output_length - [REQUIRED] - the length of the resulting hashed output. | ||
* salt - [REQUIRED] - a string (or buffer) used for salt. The string (or buffer) can be empty. | ||
* callback_function - [OPTIONAL] - not applicable to synchronous function. If present in async function, then it will be treated as a normal async callback. If not present, a Promise will be returned if ES6 promises are available. If not present and ES6 promises are not present, a SyntaxError will be thrown. | ||
@@ -149,0 +150,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1024
405
2108551
71