Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function jose.generalDecrypt
import { jose } from "https://deno.land/x/jwe_cookie_map@v1.0.0-rc0/deps.ts";
const { generalDecrypt } = jose;

Decrypts a General JWE.

Parameters

General JWE.

key: KeyLike | Uint8Array

Private Key or Secret to decrypt the JWE with. See Algorithm Key Requirements.

optional
options: DecryptOptions

JWE Decryption options.

Type Parameters

optional
T extends KeyLike = KeyLike

Parameters

General JWE.

Function resolving Private Key or Secret to decrypt the JWE with. See Algorithm Key Requirements.

optional
options: DecryptOptions

JWE Decryption options.