Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/simstudioai/sim
/ assertKey
Function
assertKey
packages/security/src/encryption.ts:64–68 ·
view source on GitHub ↗
(key: Buffer)
Source
from the content-addressed store, hash-verified
62
}
63
64
function
assertKey(key: Buffer): void {
65
if
(key.length !== 32) {
66
throw
new
Error(
'Encryption key must be 32 bytes (256 bits)'
)
67
}
68
}
Callers
2
encrypt
Function · 0.85
decrypt
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected