asp-pw

1.0.2 • Public • Published

ASP Password for Node

Codeship Status for kellyjandrews/asp-pw Jest Code Coverage semantic-release

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

Package Sidebar

Install

npm i asp-pw

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • kellyjandrews