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

Function generateSalt

packages/common/server/crypto.ts:8–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6} from 'node:crypto';
7
8export function generateSalt() {
9 return randomBytes(16).toString('hex');
10}
11
12/**
13 * Has a password or a secret with a password hashing algorithm (scrypt)

Callers 3

createSaltsWithRetryFunction · 0.90
generateNewSaltFunction · 0.90
hashPasswordFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected