-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.invalidIssues and PRs that are invalid.Issues and PRs that are invalid.
Description
- Version: v6.2.2
- Platform: Windows 64-bit
- Subsystem: crypto
crypto.pbkdf2Sync in node version 6 returns different result than in previous node versions.
In the code below "password_saved" should match "password_verify" (it does match in node versions prior to 6) -
var crypto = require('crypto');
var password_saved = 'GNZihNRbrOzRMeo9RdnT7ssstgod2fE1mKZ0+AhG8PyuTKevYGjUDHzrdnv7pEYDmoeB4V7POv5DmokIxIX6ng==';
var salt_saved = new Buffer('fhPctjE477+92KQi77+977+9dBYr77+9', 'base64').toString();
var password_entered = 'ramtairidi47';
var password_verify = crypto.pbkdf2Sync(password_entered, salt_saved, 10000, 64, 'sha1').toString('base64');
console.log('password_saved = ' + password_saved);
console.log('password_verify = ' + password_verify);
Metadata
Metadata
Assignees
Labels
cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.invalidIssues and PRs that are invalid.Issues and PRs that are invalid.