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

x/jose/jwk/thumbprint.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.15.1/jwk/thumbprint.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>