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

Decrypt a value encrypted with encryptWithOwnerKey, using the owner's private key (obtained from the session in admin views).

Parameters

encrypted: OwnerKeyEncrypted
privateKey: CryptoKey

Return Type

Promise<string>

Usage

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