Skip to main content
Module

x/jose/index.ts>calculateJwkThumbprint

"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
function calculateJwkThumbprint
import { calculateJwkThumbprint } from "https://deno.land/x/jose@v4.14.4/index.ts";

Calculates a base64url-encoded JSON Web Key (JWK) Thumbprint

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>