1.0.0 • Published 4 years ago

errorsparty.dev-passwords v1.0.0

Weekly downloads
3
License
MIT
Repository
-
Last release
4 years ago

errorsparty.dev-passwords

A wrapper around the node-argon2 module.

import { hash, verify } from "errorsparty.dev-passwords";

const plain = "My Very Secret Password";

const secret = "Very Long And Random Server Password";

const hashed = await hash(plain, secret); // string
const matches = await verify(hashed, plain, secret); // boolean

Options

  • Argon Type: Argon2 id
  • Hash Length: 128
  • Salt Length: 32
  • Memory Cost: 16 MB
  • Time Cost: 16