
Security News
GitHub to Block pull_request_target Workflows by Default Starting December 2
GitHub is tightening GitHub Actions security with new restrictions on privileged pull request workflows. Here's what changes and how maintainers are affected.
jsonwebkey-thumbprint
Advanced tools
Variable-Length Integer Encoding defined by RFC 7638.
import { jwkThumbprint } from "jsonwebkey-thumbprint"
// A public key exported as a JWK
const keypair = await crypto.subtle.generateKey('Ed25519', true, ['sign', 'verify'])
const jwk = await crypto.subtle.exportKey('jwk', keypair.publicKey)
// Using sha-256 as a hash function and base64url as encoding
const hash = (b: BufferSource) => crypto.subtle.digest('SHA-256', b);
const decode = (u: ArrayBuffer) => b64ToB64URL(b64ToB64NoPadding(u8ToB64(new Uint8Array(u))))
// Compute the JWK Thumbprint for the public key
console.log(await jwkThumbprint(jwk))
// Helper functions
const u8ToB64 = (u: Uint8Array) =>
btoa(String.fromCharCode(...u))
const b64ToB64URL = (s: string) =>
s.replace(/\+/g, '-').replace(/\//g, '_')
const b64ToB64NoPadding = (s: string) =>
s.replace(/=/g, '')
This software has not been audited. Please use at your sole discretion.
This project is under the Apache-2.0 license.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be Apache-2.0 licensed as above, without any additional terms or conditions.
FAQs
JWK Thumbprint defined by RFC 7638
The npm package jsonwebkey-thumbprint receives a total of 148,106 weekly downloads. As such, jsonwebkey-thumbprint popularity was classified as popular.
We found that jsonwebkey-thumbprint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GitHub is tightening GitHub Actions security with new restrictions on privileged pull request workflows. Here's what changes and how maintainers are affected.

Security News
/Application Security
A practical guide to securing GitHub Actions against supply chain attacks, covering malicious pull requests, credential theft, dependency risks, and release pipelines.

Security News
Composer 2.11 adds dependency cooldowns, joining package managers that delay new releases to reduce supply chain risks while allowing urgent security updates.