asp-pw
v1.0.2
Published
A password hash and validation library in Node compatible with the ASP.NET identity framework.
Downloads
3
Maintainers
Readme
ASP Password for Node
Currently only works for compatibility version 2 of the ASP.NET identity framework.
Example Usage
Password Hashing
import password from 'asp-pw';
const hashedPassword = password.hash('MySecurePassword');
console.log(hashedPassword); // Prints Base64 encoded string
Password Validation
import password from 'asp-pw';
// Get the original hash from your data provider.
const hashedPassword = '...';
const valid= password.validate('MySecurePassword', storedHash);
console.log(valid); // Prints true or false