(password: string)
| 3 | import { encodeHexLowerCase } from '@oslojs/encoding'; |
| 4 | |
| 5 | export 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 | |
| 14 | export async function verifyPasswordHash( |
| 15 | hash: string, |
no outgoing calls
no test coverage detected