derived-key

3.0.1 • Public • Published

derived-key

Generate a secure (one-way) hash to store secrets with

import { hash, verify } from 'derived-key'
 
async function main () {
  const hashed = await hash('password')    
  return verify('password', hashed)
}
 
main().then(x => console.log(x)) //true

Building & Testing

npm i

npm run watch

Package Sidebar

Install

npm i derived-key

Weekly Downloads

66

Version

3.0.1

License

MIT

Unpacked Size

10.4 kB

Total Files

6

Last publish

Collaborators

  • calebboyd