derived-key

pbkdf2 password hashing for javascript

Usage no npm install needed!

<script type="module">
  import derivedKey from 'https://cdn.skypack.dev/derived-key';
</script>

README

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