Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
7
const
TAG_SIZE = 16;
8
9
export
function
generateKey(): AesKey {
10
return
randomBytes(32);
11
}
12
13
export
function
encrypt(data: string, key: AesKey): Uint8Array {
14
const
nonce = randomBytes(NONCE_SIZE);
Callers
1
constructor
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected