hashify-matchify

v1.0.0
Salt and hash passwords using crypto

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 used, 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');
npm i hashify-matchify

Metadata

  • MIT
  • Whatever
  • Adam Quinton
  • released 10/26/2019

Downloads

Maintainers