MCPcopy Create free account
hub / github.com/TanStack/router / hashPassword

Function hashPassword

e2e/solid-start/basic-auth/src/utils/prisma.ts:10–20  ·  view source on GitHub ↗
(password: string)

Source from the content-addressed store, hash-verified

8export const prismaClient = new PrismaClient({ adapter })
9
10export function hashPassword(password: string) {
11 return new Promise<string>((resolve, reject) => {
12 crypto.pbkdf2(password, 'salt', 100000, 64, 'sha256', (err, derivedKey) => {
13 if (err) {
14 reject(err)
15 } else {
16 resolve(derivedKey.toString('hex'))
17 }
18 })
19 })
20}

Callers 4

signup.tsxFile · 0.90
_authed.tsxFile · 0.90

Calls 2

toStringMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected