Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/jose/index.ts>DecryptOptions

"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
interface DecryptOptions
implements CritOption
import { type DecryptOptions } from "https://deno.land/x/jose@v4.14.1/index.ts";

JWE Decryption options.

Properties

optional
keyManagementAlgorithms: string[]

A list of accepted JWE "alg" (Algorithm) Header Parameter values.

optional
contentEncryptionAlgorithms: string[]

A list of accepted JWE "enc" (Encryption Algorithm) Header Parameter values. By default all "enc" (Encryption Algorithm) values applicable for the used key/secret are allowed.

optional
inflateRaw: InflateFunction

In a browser runtime you have to provide an implementation for Inflate Raw when you expect JWEs with compressed plaintext.

optional
maxPBES2Count: number

(PBES2 Key Management Algorithms only) Maximum allowed "p2c" (PBES2 Count) Header Parameter value. The PBKDF2 iteration count defines the algorithm's computational expense. By default this value is set to 10000.