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

Decrypts a Compact JWE.

Parameters

jwe: string | Uint8Array

Compact 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

jwe: string | Uint8Array

Compact JWE.

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

optional
options: DecryptOptions

JWE Decryption options.