Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 538 Bytes

README.md

File metadata and controls

29 lines (16 loc) · 538 Bytes

.NET PasswordHasher Class APIs for NodeJS

NodeJS package for hash/validate passwords using the .NET PasswordHasher algorithm.

Usage

var dotnetPasswordHasher = require('dotnet-password-hasher');

//#### Hash a password
let hash = dotnetPasswordHasher.HashPassword('CorrectHorseBatteryStaple');
// return string

//#### Verify a password
dotnetPasswordHasher.VerifyHashedPassword('CorrectHorseBatteryStaple', hash);
// return true false

Install

npm install --save dotnet-password-hasher

Test

npm test