Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/jose/jwe/general/encrypt.ts>GeneralEncrypt#addRecipient

"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 GeneralEncrypt.prototype.addRecipient
import { GeneralEncrypt } from "https://deno.land/x/jose@v4.13.2/jwe/general/encrypt.ts";

Adds an additional recipient for the General JWE object.

Parameters

key: KeyLike | Uint8Array

Public Key or Secret to encrypt the Content Encryption Key for the recipient with. See Algorithm Key Requirements.

optional
options: CritOption

JWE Encryption options.