Learn how to verify short-lived offline license leases without shipping shared secrets in client binaries. Test deterministic UTF-8 canonical JSON, ephemeral ECDSA P-256 (ES256) WebCrypto signing, tamper detection, and UTC clock-skew validation right here—then download the free starter kit (Python stdlib CLI + Node.js Ed25519 snippet).
Never ship an HMAC secret inside a desktop or CLI binary: anyone running strings or debugging memory can extract it and forge unlimited licenses. Offline clients verify with an embedded public key (ES256 or Ed25519) while the vendor keeps the private key strictly server-side. Keep HMAC-SHA256 (like bundled lease_verifier.py) strictly for trusted server/CI verification.
ensure_ascii=False)
{"customer":"Café Studio — Zürich","expires_at":"2026-12-15T00:00:00Z","features":["cli","batch-export","offline-lease"],"issued_at":"2026-12-01T00:00:00Z","license_id":"lic_01JFK8Z9P2","meta":{"grace_days":3,"plan":"team"},"product":"cli-pro-kit","seat_limit":5}
Public Verify Key (JWK — safe to embed in client app, DEMO ONLY)
{ "kty": "EC", "crv": "P-256", "note": "Click 'Generate Demo Keys & Sign' to inspect live ES256 Public JWK" }
| Claim | Value | Check |
|---|---|---|
license_id | lic_01JFK8Z9P2 | Non-empty string |
customer | Café Studio — Zürich | UTF-8 canonicalized |
seat_limit | 5 | Positive integer (not bool) |
window | 2026-12-01T00:00:00Z → 2026-12-15T00:00:00Z | Valid at 2026-12-05T12:00:00Z |