npm.io
3.0.1 • Published 6 years ago

derived-key

Licence
MIT
Version
3.0.1
Deps
1
Size
10 kB
Vulns
0
Weekly
0
Stars
1

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