Skip to main content
Module

x/jose/index.ts>FlattenedEncrypt#encrypt

"JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.
Extremely Popular
Go to Latest
method FlattenedEncrypt.prototype.encrypt
import { FlattenedEncrypt } from "https://deno.land/x/jose@v4.14.4/index.ts";

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.