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://dotland.deno.dev/x/jose@v4.15.1/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>