MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / generateSalt

Function generateSalt

packages/factory/src/create/auth.ts:5–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4// dup from utilities to avoid circular dependency
5function generateSalt(): string {
6 return randomBytes(16).toString('hex');
7}
8// dup from utilities to avoid circular dependency
9function generateHash(password: string, salt: string): string {
10 const hash = createHmac('sha512', salt);

Callers 1

createAuthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected