MCPcopy Create free account
hub / github.com/FIND-Lab/AgentWard / generateKey

Function generateKey

util/crypto-util.ts:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const TAG_SIZE = 16;
8
9export function generateKey(): AesKey {
10 return randomBytes(32);
11}
12
13export function encrypt(data: string, key: AesKey): Uint8Array {
14 const nonce = randomBytes(NONCE_SIZE);

Callers 1

constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected