New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bcrypt-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bcrypt-nodejs - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

test-async.js

10

bCrypt.js

@@ -586,3 +586,3 @@ var crypto = require("crypto");

}
setTimeout(function() {
process.nextTick(function() {
var result = null;

@@ -621,3 +621,3 @@ var error = null;

}
setTimeout(function() {
process.nextTick(function() {
var result = null;

@@ -644,3 +644,2 @@ var error = null;

var hash_data_length = hash_data.length;
var encrypted_length = encrypted.length;

@@ -653,3 +652,4 @@

var same = true;
var hash_data = hashSync(data, encrypted.substr(0, encrypted_length-31));
var hash_data = hashSync(data, encrypted.substr(0, encrypted_length-31));
var hash_data_length = hash_data.length;

@@ -682,3 +682,3 @@ same = hash_data_length == encrypted_length;

}
setTimeout(function() {
process.nextTick(function() {
var result = null;

@@ -685,0 +685,0 @@ var error = null;

{
"name": "bcrypt-nodejs",
"description": "A JS bcrypt library for NodeJS.",
"description": "A native JS bcrypt library for NodeJS.",
"main": "./bCrypt",
"author": "Shane Girish (https://github.com/shaneGirish)",
"version": "0.0.1",
"version": "0.0.2",
"author": {

@@ -19,2 +19,3 @@ "name": "Shane Girish",

"contributors": [
],

@@ -21,0 +22,0 @@ "keywords": [

bcrypt-nodejs
===========================================
Pure JS implementation of BCrypt for Node.
Native JS implementation of BCrypt for Node.
Has the same functionality as [node.bcrypt.js] expect for a few tiny differences.

@@ -11,3 +11,3 @@ Mainly, it doesn't let you set the seed length for creating the random byte array.

This code is based on http://code.google.com/p/javascript-bcrypt/ and uses "crypto" to create random byte arrays.
This code is based on [javascript-bcrypt] and uses "crypto" to create random byte arrays.

@@ -71,4 +71,8 @@ Basic usage:

* `encrypted` - [REQUIRED] - hash from which the number of rounds used should be extracted.
[node.bcrypt.js]:https://github.com/ncb000gt/node.bcrypt.js.git
Credits
-------------------------
I heavily reused code from [node.bcrypt.js]. Though "Clipperz Javascript Crypto Library" was removed and its functionality replaced with "crypto".
[node.bcrypt.js]:https://github.com/ncb000gt/node.bcrypt.js.git
[javascript-bcrypt]:http://code.google.com/p/javascript-bcrypt/

@@ -44,26 +44,26 @@ var bCrypt = require("./bCrypt");

console.log("\n\n True Compares \n");
console.log("\n\n First Set of Compares \n");
console.log(bCrypt.compareSync("super secret", hash1));
console.log(bCrypt.compareSync("super secret", hash2));
console.log(bCrypt.compareSync("super secret", hash5));
console.log(bCrypt.compareSync("super secret", hash6));
console.log(bCrypt.compareSync("super secret", hash9));
console.log(bCrypt.compareSync("super secret", hash3));
console.log(bCrypt.compareSync("super secret", hash4));
console.log(bCrypt.compareSync("super secret", hash5));
console.log(bCrypt.compareSync("super secret", hash6));
console.log(bCrypt.compareSync("super secret", hash7));
console.log(bCrypt.compareSync("super secret", hash8));
console.log(bCrypt.compareSync("super secret", hash9));
console.log(bCrypt.compareSync("super secret", hash0));
console.log("\n\n False Compares \n");
console.log("\n\n Second Set of Compares \n");
console.log(bCrypt.compareSync("supersecret", hash1));
console.log(bCrypt.compareSync("supersecret", hash2));
console.log(bCrypt.compareSync("supersecret", hash5));
console.log(bCrypt.compareSync("supersecret", hash6));
console.log(bCrypt.compareSync("supersecret", hash9));
console.log(bCrypt.compareSync("supersecret", hash3));
console.log(bCrypt.compareSync("supersecret", hash4));
console.log(bCrypt.compareSync("supersecret", hash5));
console.log(bCrypt.compareSync("supersecret", hash6));
console.log(bCrypt.compareSync("supersecret", hash7));
console.log(bCrypt.compareSync("supersecret", hash8));
console.log(bCrypt.compareSync("supersecret", hash9));
console.log(bCrypt.compareSync("supersecret", hash0));

Sorry, the diff of this file is not supported yet

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