Rotor machine
A rotor machine is an electro-mechanical encryption device that employs a series of rotating disks, or rotors, each wired to permute the 26 letters of the alphabet via electrical contacts, producing a polyalphabetic substitution cipher where the permutation changes dynamically with each keystroke as the rotors advance.[1] This mechanism generates a keystream with a long non-repeating period, theoretically resistant to simple frequency analysis attacks common against monoalphabetic ciphers.[1] Invented by Edward Hebern, who patented the core rotor principle in 1922 after developing prototypes from 1917, the technology marked a significant advance in mechanical cryptography by automating complex substitutions beyond manual methods.[2] Rotor machines achieved widespread military adoption in the interwar period and World War II, most notably through Germany's Enigma system, which used multiple interchangeable rotors and additional reflectors to expand the key space to over 150 trillion possibilities, though procedural errors and mathematical insights enabled cryptanalysts like those at Bletchley Park to recover plaintexts, shortening the war.[3] Despite their obsolescence by electronic computers post-war, rotor machines exemplified the transition from mechanical to computational encryption and influenced subsequent cipher designs, including early digital standards.[4]