Socket
Socket
Sign inDemoInstall

node-pbkdf2

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

4

index.js

@@ -70,3 +70,3 @@ var crypto = require('crypto');

crypto.pbkdf2(password, randomSalt, self.iterations, self.derivedKeyLength, function (err, derivedKey) {
crypto.pbkdf2(password, randomSalt, self.iterations, self.derivedKeyLength, 'sha512', function (err, derivedKey) {
if (err) { return callback(err); }

@@ -96,3 +96,3 @@

// Use the encrypted password's parameter to hash the candidate password
crypto.pbkdf2(password, encryptedPassword.salt, encryptedPassword.iterations, encryptedPassword.derivedKeyLength, function (err, derivedKey) {
crypto.pbkdf2(password, encryptedPassword.salt, encryptedPassword.iterations, encryptedPassword.derivedKeyLength, 'sha512', function (err, derivedKey) {
if (err) { return callback(err); }

@@ -99,0 +99,0 @@

{
"name": "node-pbkdf2",
"version": "0.1.1",
"version": "0.1.2",
"author": {

@@ -5,0 +5,0 @@ "name": "Louis Chatriot",

node-pbkdf2
===========
**IMPORTANT: this library is not maintained anymore, please don't submit anymore pull requests except for bugfixes**
Wrapper to hash and check password with Node's crypto module's built-in pbkdf2.

@@ -33,3 +35,3 @@

hasher('supersecret', encryptedPassword, function (err, passwordIsCorrect) {
// passwordIsCorrect is true
// You can guess what information passwordIsCorrect holds easily :)
});

@@ -36,0 +38,0 @@ ```

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc