Skip to content

zvakanaka/hashify-matchify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hashify-matchify

Salt and hash passwords using crypto

Install

$ npm i --save hashify-matchify

const { hashify, matchify } = require('hashify-matchify');

Hash

// by default a random salt is generated, but a salt may be provided as the 2nd param
const { salt, hash, iterations } = await hashify('password');

Check

const pass = await matchify(hash, salt, iterations, 'password');

Releases

No releases published

Packages

No packages published