sberan / derived-key

pbkdf2 password/secret hashing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

derived-key

Generate a secure hash to store secrets (passwords) with

import { hash, verify } from 'derived-key'

async function main () {
  const hashed = await hash('password')    
  return verify('passwor', hashed)
}

main().then(x => console.log(x)) //false

Building & Testing

npm install

npm test

npm run prepublish

About

pbkdf2 password/secret hashing

License:MIT License


Languages

Language:JavaScript 100.0%