LESSON 3 · The Math of Choices
Birthday Attacks on Cryptography
The same math that surprises partygoers powers real cyber-attacks called birthday attacks. Instead of matching one specific hash (astronomically hard), an attacker searches for any collision — any two inputs producing the same hash. Birthday math says this takes only about √N tries, where N is the hash space.
For a 64-bit hash, matching a specific value requires ~2⁶⁴ tries. But finding any two colliding inputs requires only ~2³² ≈ 4 billion, which modern hardware handles in hours. This is why cryptographic hash functions use 256 bits or more: √(2²⁵⁶) = 2¹²⁸ attempts remain secure against any conceivable future computation. The birthday paradox governs how hash sizes scale.