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

x/faster/vendor/jose/types.d.ts>DecryptOptions

A fast and optimized middleware server with an absurdly small amount of code (300 lines) built on top of Deno's native HTTP APIs with no dependencies. It also has a collection of useful middlewares: log file, serve static, CORS, session, rate limit, token, body parsers, redirect, proxy and handle upload. Fully compatible with Deno Deploy.
Latest
interface DecryptOptions
implements CritOption
import { type DecryptOptions } from "https://deno.land/x/faster@v11.7/vendor/jose/types.d.ts";

JWE Decryption options.

Properties

optional
keyManagementAlgorithms: string[]

A list of accepted JWE "alg" (Algorithm) Header Parameter values. By default all "alg" (Algorithm) Header Parameter values applicable for the used key/secret are allowed except for all PBES2 Key Management Algorithms, these need to be explicitly allowed using this option.

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
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.