Home▸Cryptography▸One-Time Pad: Perfect Secrecy, Key Bias, Mutual Information and the Two-Time-Pad Leak

One-Time Pad: Perfect Secrecy, Key Bias, Mutual Information and the Two-Time-Pad Leak

XOR a message with a random key and the ciphertext reveals nothing: that is Shannon's perfect secrecy. Watch a scanning gantry encrypt a row of message bits, then break the conditions one at a time. Bias the key and the mutual information between message and ciphertext becomes positive; reuse the key for a second message and the XOR of the two ciphertexts equals the XOR of the two plaintexts. Exact formulas, exhaustive enumeration and Monte Carlo checks, with a Blender-built encryption gantry and bit trays.

Cryptography3DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
One-Time Pad: Perfect Secrecy, Key Bias, Mutual Information and the Two-Time-Pad Leak ↗ Open standalone

XOR a message with a random key and the ciphertext reveals nothing: that is Shannon's perfect secrecy. Watch a scanning gantry encrypt a row of message bits, then break the conditions one at a time. Bias the key and the mutual information between message and ciphertext becomes positive; reuse the key for a second message and the XOR of the two ciphertexts equals the XOR of the two plaintexts. Exact formulas, exhaustive enumeration and Monte Carlo checks, with a Blender-built encryption gantry and bit trays.

⚙ Under the hood

XOR a message with a random key and the ciphertext reveals nothing: that is Shannon's perfect secrecy. Watch a scanning gantry encrypt a row of message bits, then break the conditions one at a time. Bias the key and the mutual information between message and ciphertext becomes positive; reuse the key for a second message and the XOR of the two ciphertexts equals the XOR of the two plaintexts. Exact formulas, exhaustive enumeration and Monte Carlo checks, with a Blender-built encryption gantry and bit trays.

cryptographyone-time-padshannonperfect-secrecyxorvenonainformation-theorycipherOne-Time PadPerfect SecrecyMutual InformationXOR CipherKey Reuse

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

What did you find?

Add reproduction steps (optional)