Socket
Socket
Sign inDemoInstall

scrypt

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrypt - npm Package Compare versions

Comparing version 5.4.0 to 5.4.1

4

changelog.md

@@ -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

@@ -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

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc