Function: hashPassword()
hashPassword(
plainPassword,options?):Promise<string>
Defined in: hash.ts:59
Hashes a password with PBKDF2-HMAC-SHA256.
The returned string is self-describing —
pbkdf2-sha256$<iterations>$<salt>$<hash> — so the iteration count can be
raised in the future without invalidating stored hashes.
Parameters
| Parameter | Type |
|---|---|
plainPassword | string |
options? | { iterations?: number; } |
options.iterations? | number |
Returns
Promise<string>