Salt and hash passwords using crypto
$ npm i --save hashify-matchify
const { hashify, matchify } = require('hashify-matchify');
// by default a random salt is used, but a salt may be provided as the 2nd param
const { salt, hash, iterations } = await hashify('password');
const pass = await matchify(hash, salt, iterations, 'password');