pnicorelli / dotnet-password-hasher

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.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

About

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


Languages

Language:JavaScript 100.0%