MCPcopy Index your code
hub / github.com/simstudioai/sim / hashApiKey

Function hashApiKey

apps/sim/lib/api-key/crypto.ts:104–106  ·  view source on GitHub ↗
(plainKey: string)

Source from the content-addressed store, hash-verified

102 * @returns The hex-encoded SHA-256 digest
103 */
104export function hashApiKey(plainKey: string): string {
105 return sha256Hex(plainKey)
106}

Callers 5

service.test.tsFile · 0.90
createWorkspaceApiKeyFunction · 0.90
crypto.test.tsFile · 0.90
route.tsFile · 0.90

Calls 1

sha256HexFunction · 0.90

Tested by

no test coverage detected