Home▸Cryptography▸One-Time Pad: Message, Key and Ciphertext Bit Rows with Information Leakage (2D)

One-Time Pad: Message, Key and Ciphertext Bit Rows with Information Leakage (2D)

A top view of the message, key and ciphertext bit rows with the XOR gantry, plus charts of the information leaked per bit against key bias and plaintext bias, including the two-time-pad case. Same shared model as the 3D scene.

Cryptography2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
One-Time Pad: Message, Key and Ciphertext Bit Rows with Information Leakage (2D) ↗ 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

A top view of the message, key and ciphertext bit rows with the XOR gantry, plus charts of the information leaked per bit against key bias and plaintext bias, including the two-time-pad case. Same shared model as the 3D scene.

One-Time PadPerfect SecrecyMutual InformationXOR CipherKey Reuse

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)