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

Decrypt a value encrypted with encryptWithOwnerKey. The owner's private key comes from the session in admin views.

Parameters

encrypted: OwnerKeyEncrypted
privateKey: CryptoKey

Return Type

Promise<string>

Usage

import { decryptWithOwnerKey } from "doc.ts";