Node.js package for hashing and validating passwords using the default ASP.NET Identity password hash algorithm.
npm install aspnet-identity-pw
var passwordHasher = require('aspnet-identity-pw');
var hashedPassword = passwordHasher.hashPassword('SomePassword');
var isValid = passwordHasher.validatePassword('SomePassword', hashedPassword);
var passwordHasher = require('aspnet-identity-pw');
var hashedPassword = null;
var isValid = null;
passwordHasher.hashPassword('SomePassword', function(err, result) {
hashedPassword = result;
});
passwordHasher.validatePassword('SomePassword', hashedPassword, function(err, result) {
isValid = result;
});
npm test
- 1.0.0 Initial release