Skip to main content
Latest
function jose.calculateJwkThumbprintUri
import { jose } from "https://deno.land/x/jwe_cookie_map@v1.0.1/src/deps.ts";
const { calculateJwkThumbprintUri } = jose;

Calculates a JSON Web Key (JWK) Thumbprint URI

Parameters

jwk: JWK

JSON Web Key.

optional
digestAlgorithm: "sha256" | "sha384" | "sha512"

Digest Algorithm to use for calculating the thumbprint. Default is "sha256".

Returns

Promise<string>