function hybridDecrypt
hybridDecrypt(
encrypted: string,
privateKey: CryptoKey,
): Promise<string>

Decrypt data using hybrid encryption Expects format: hyb:1:$base64WrappedKey:$base64iv:$base64ciphertext Results are cached in a bounded LRU (ciphertext -> plaintext)

Parameters

encrypted: string
privateKey: CryptoKey

Return Type

Promise<string>

Usage

import { hybridDecrypt } from "docs/crypto.ts";