Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/sessions / / decryptBody
Function: decryptBody()
ts
function decryptBody(body, key): Uint8Array;Defined in: packages/sessions/src/export/reader.ts:252
Decrypt a body that was written with encryptBody(...). The layout is [iv (12)][ciphertext][tag (16)].
Parameters
| Parameter | Type |
|---|---|
body | Uint8Array |
key | Uint8Array |
Returns
Uint8Array