Skip to main content
zerotal

Documentation


Documentation / @zerotal/core / security / Hash

Variable: Hash

const Hash: HashManager

Defined in: hash/Hash.ts:60

Password hashing primitive (argon2id by default).

Example

import { Hash } from "@zerotal/core/security";

const digest = await Hash.make("hunter2");
await Hash.check("hunter2", digest);  // true
Hash.needsRehash(digest);             // false — re-hash on next login when true