1.0.2 • Published 7 years ago

asp-pw v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago