Skip to content

Function: hashPassword() ​

ts
function hashPassword(password, iterations?): Promise<string>;

Defined in: server/accounts.ts:1321

A PBKDF2-SHA256 hash, as pbkdf2$sha256$<iterations>$<salt>$<hash> in base64url.

Parameters ​

ParameterTypeDefault value
passwordstringundefined
iterations?numberPBKDF2_ITERATIONS

Returns ​

Promise<string>

MIT licence. Tickflare is an independent project and is not affiliated with Cloudflare.