1.0.0 • Published 6 years ago
errorsparty.dev-passwords v1.0.0
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); // booleanOptions
- Argon Type:
Argon2 id - Hash Length:
128 - Salt Length:
32 - Memory Cost:
16 MB - Time Cost:
16
1.0.0
6 years ago