Computer Science • Advanced • 25 mins
WWII Enigma Machine Simulator Sandbox
Experience the spinning rotors, plugboard swaps, and fatal mathematical flaw of the German military Enigma machine.
Telemetry Cockpit Live Simulator
Target Objectives
- Trace logic flow and algorithm behavior step by step.
- Measure performance and complexity trade-offs.
- Experiment with structures and systems in a safe sandbox.
Framework: HTML5 / WebGLOpenLabs Sandbox
Theory & Core Foundations
The Enigma Machine was an electro-mechanical rotor cipher machine. Each keypress stepped the right rotor and sent current through 3 scrambling rotors, a reflector, and back through the rotors to light up a lampboard bulb.
Mathematical Foundations
Permutation group theory and reversible rotor circuits.
E(x) = P^{-1} R_1^{-1} R_2^{-1} R_3^{-1} U R_3 R_2 R_1 P(x)
E(x) \neq x \quad \text{(Fatal Flaw: Never encrypts to itself)}
How The Simulation Works
Press keyboard keys or use the auto-typer to watch rotors spin and bulbs glow.
Knowledge Graph & Related Concepts
Related Experiments & Simulations
HTML/CSS/JS Editor
Live web code editor
JS Event Loop Visualizer
Interactive JavaScript event loop visualizer
CPU Micro-Architecture & 8-Bit Assembly
8-bit assembly editor, 4-stage instruction cycle, datapath bus animation, and register file
Binary & Bitwise Operations Studio
Interactive 8-bit register tiles, bitwise logic gates, shifts, rotations, Two's complement, and mask hacks
Frequently Asked Questions
Learning Objectives
- •Step through 3 rotating mechanical rotors with turnover notches.
- •Trace the electrical current through the plugboard and reflector.
- •Understand why the impossibility of self-encryption enabled Turing's Bombe to break Enigma.
Real World Applications
- ✓WWII military intelligence
- ✓Birth of modern computer science and Bletchley Park codebreaking