Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
104
export
function
hashApiKey(plainKey: string): string {
105
return
sha256Hex(plainKey)
106
}
Callers
5
service.test.ts
File · 0.90
authenticateApiKeyFromHeader
Function · 0.90
createWorkspaceApiKey
Function · 0.90
crypto.test.ts
File · 0.90
route.ts
File · 0.90
Calls
1
sha256Hex
Function · 0.90
Tested by
no test coverage detected