MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / hashPassword

Function hashPassword

packages/auth/src/password.ts:5–12  ·  view source on GitHub ↗
(password: string)

Source from the content-addressed store, hash-verified

3import { encodeHexLowerCase } from '@oslojs/encoding';
4
5export async function hashPassword(password: string): Promise<string> {
6 return await hash(password, {
7 memoryCost: 19456,
8 timeCost: 2,
9 outputLen: 32,
10 parallelism: 1,
11 });
12}
13
14export async function verifyPasswordHash(
15 hash: string,

Callers 3

hashRecoveryCodesFunction · 0.90
auth.tsFile · 0.90
share.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected