pbkdfpass2
v0.1.0
Published
pbkdf2 based password hashing
Downloads
4
Maintainers
Readme
PBKDFPASS2
A node library to generated safe password hashes via pbkdf2
Usage
npm i pbkdfpass2
Hash a password
import { derive, verify } from "pbkdfpass2";
const passwordHash = await derive("password");
// passwordHash == "1BFx53hdPUYLdiAIj7YaSkFrgZcLHmRQKhy7vNpj9Q2X9a……"
Verify a password
import { derive, verify } from "pbkdfpass2";
const givenPassword = await derive("password");
const v = await verify(givenPassword, "password");
// v == true