function encryptWithKey
encryptWithKey(
plaintext: string,
key: CryptoKey,
): Promise<KeyEncrypted>

Encrypt data with a symmetric key (for wrapping private key with DATA_KEY)

Parameters

plaintext: string

Return Type

Promise<KeyEncrypted>

Usage

import { encryptWithKey } from "doc.ts";