Skip to content

calebboyd/derived-key

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

pbkdf2 password/secret hashing

Resources

License

Stars

Watchers

Forks

Packages

No packages published