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.
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.
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.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install