npm.io
1.0.4 • Published 9 years ago

passwort

Licence
MIT
Version
1.0.4
Deps
1
Vulns
0
Weekly
0

View on NPM

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');