Nomnom Pumpernickle Muffins
Miss any of our Open RFC calls?Watch the recordings here! »

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

Install

npm i asp-pw

DownloadsWeekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • avatar