MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / generateTestKey

Function generateTestKey

services/kiloclaw/controller/src/bootstrap.test.ts:40–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38function generateTestKey(): string {
39 return crypto.randomBytes(32).toString('base64');
40}
41
42function encryptValue(keyBase64: string, plaintext: string): string {
43 const key = Buffer.from(keyBase64, 'base64');
44 const iv = crypto.randomBytes(12);
45 const cipher = crypto.createCipheriv('aes-256-gcm', key, iv);

Callers 1

bootstrap.test.tsFile · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected