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

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

Parameters

plaintext: string

Return Type

Promise<string>

Usage

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