Skip to content

encrypt

encrypt(input, plaintext): string

Defined in: packages/core/src/utils/encrypt.ts:37

Encrypt a plaintext secret for storage.

Format: base64url(iv):base64url(authTag):base64url(ciphertext) (12B IV). Uses secret from ShelfConfig.secret — throws if missing so misconfiguration fails loudly like scratchDir does in capture/orchestrator.ts.

SecretInput

string

string