Local demo HMAC
The three sample tokens are signed with demo-local-secret-2026. That string is a labeled non-production local demo HMAC. It is not a production secret and it is not an API key.
Decoding, verification, and re-signing run in this tab. The page does not post a token or a secret to a server. That is still not a reason to paste a production HMAC into a page you do not trust. Prefer a local tool, and rotate a key if it may have been typed into a remote debugger.
Verification and re-signing use crypto.subtle.importKey with HMAC and SHA-256, SHA-384, or SHA-512, then crypto.subtle.sign. Signatures are compared with a constant-time byte check. The none algorithm, and any non-HMAC algorithm such as RS256, is never treated as a verified HMAC signature.
The three sample tokens are signed with demo-local-secret-2026. That string is a labeled non-production local demo HMAC. It is not a production secret and it is not an API key.
It does not verify RSA or ECDSA signatures, it does not contact a JWKS URL, and it does not store tokens after you close the tab. A re-signed token is generated only in this browser.
No. A matching HMAC only means the token matches the secret you typed here. Access control still belongs to the service that issued the token.
You can, because the work stays in this browser. You should still avoid pasting a production secret into any page you do not control, including this one if you opened it from a source you do not trust.