passwort
v1.0.4
Published
NodeJS package for easy and secure password hashing
Downloads
22
Readme
Installation
npm install passwort --save
Example Usage
var passwort = require('passwort');
var pw = passwort.create({
algorithm: 'sha1'
});
var input = 'passwort';
var hash = await pw.hash(input);
var matches = await pw.verify(input, hash);
console.log('input =', input);
console.log('hash =', hash);
console.log('matching =', match?'yes':'no');