dotnet-password-hasher

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

Usage no npm install needed!

<script type="module">
  import dotnetPasswordHasher from 'https://cdn.skypack.dev/dotnet-password-hasher';
</script>

README

.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