@ngriffin_uk/auth-password-hash
v0.3.3
Published
Password hashing contracts and secure runtime implementations
Readme
@ngriffin_uk/auth-password-hash
Password-hasher contracts plus dependency-free Argon2id, scrypt, and PBKDF2 implementations.
pnpm add @ngriffin_uk/auth-password-hashimport { createArgon2idHasher } from "@ngriffin_uk/auth-password-hash/node";
const hasher = createArgon2idHasher();
const hash = await hasher.hash(password);
const result = await hasher.verifyAndCheck(password, hash);Node's built-in Argon2id requires Node 24.7 or newer. The Node entry point also
exports scrypt; the pbkdf2 entry point uses Web Crypto.
