Home▸Cybersecurity▸Truncated HMAC Tag Length: Online Forgery Odds, Guess Budget, Lockout and Key Lifetime

Truncated HMAC Tag Length: Online Forgery Odds, Guess Budget, Lockout and Key Lifetime

An API gateway checks a truncated HMAC tag of t bits on every signed request. A blind guess hits with probability 2^-t, so the odds of a forgery depend on how many guesses the gateway lets through: its rate limit, its lockout after k failures with a cooldown, the key lifetime and the number of keys. Change them to see forgery probability, the attempts per lifetime, the tag length needed for a risk target and the guess grid being swept. Defensive and educational. A Blender-built gateway, lock arm and tag grid, with numerical checks built in.

Cybersecurity3DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
Truncated HMAC Tag Length: Online Forgery Odds, Guess Budget, Lockout and Key Lifetime ↗ Open standalone

An API gateway checks a truncated HMAC tag of t bits on every signed request. A blind guess hits with probability 2^-t, so the odds of a forgery depend on how many guesses the gateway lets through: its rate limit, its lockout after k failures with a cooldown, the key lifetime and the number of keys. Change them to see forgery probability, the attempts per lifetime, the tag length needed for a risk target and the guess grid being swept. Defensive and educational. A Blender-built gateway, lock arm and tag grid, with numerical checks built in.

⚙ Under the hood

An API gateway checks a truncated HMAC tag of t bits on every signed request. A blind guess hits with probability 2^-t, so the odds of a forgery depend on how many guesses the gateway lets through: its rate limit, its lockout after k failures with a cooldown, the key lifetime and the number of keys. Change them to see forgery probability, the attempts per lifetime, the tag length needed for a risk target and the guess grid being swept. Defensive and educational. A Blender-built gateway, lock arm and tag grid, with numerical checks built in.

Three.jsCybersecurityAPI SecurityZero TrustHMACMessage AuthenticationTag TruncationRate LimitingLockoutDefensive Security

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)