Skip to main content
Latest
method jose.CompactEncrypt.prototype.encrypt
import { jose } from "https://deno.land/x/jwe_cookie_map@v1.0.1/src/deps.ts";
const { CompactEncrypt } = jose;

Encrypts and resolves the value of the Compact JWE string.

Parameters

key: KeyLike | Uint8Array

Public Key or Secret to encrypt the JWE with. See Algorithm Key Requirements.

optional
options: EncryptOptions

JWE Encryption options.

Returns

Promise<string>