function decryptBytes
decryptBytes(encrypted: Uint8Array): Promise<Uint8Array>

Decrypt binary data encrypted with encryptBytes(). Expects ENCB binary format: magic + version + IV + ciphertext.

Parameters

encrypted: Uint8Array

Return Type

Promise<Uint8Array>

Usage

import { decryptBytes } from "doc.ts";