Skip to content

kellyjandrews/asp-pw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A password hash and validation library in Node compatible with the ASP.NET identity framework.

Resources

Stars

Watchers

Forks

Packages

No packages published