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

Encrypts and resolves the value of the Flattened JWE object.

Parameters

key: KeyLike | Uint8Array

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

optional
options: EncryptOptions

JWE Encryption options.