Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
8
export
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
createSaltsWithRetry
Function · 0.90
generateNewSalt
Function · 0.90
hashPassword
Function · 0.85
Calls
1
toString
Method · 0.45
Tested by
no test coverage detected