npm.io
0.0.1 • Published 8 years ago

dotnet-password-hasher

Licence
ISC
Version
0.0.1
Deps
1
Size
3 kB
Vulns
0
Weekly
0

.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 dotnetPasswordHasher

Test

npm test