Enigma Machine
Story
The Enigma machines were a series of electro-mechanical rotor cipher machines developed and used in the early-to mid-20th century to protect commercial, diplomatic and military communication.
Enigma was invented by the German engineer Arthur Scherbius at the end of World War I.
Early models were used commercially from the early 1920s, and adopted by military and government services of several countries, most notably Nazi Germany before and during World War II.
Several different Enigma models were produced, but the German military models, having a plugboard, were the most complex.
Japanese and Italian models were also in use.
Usage
This module is really easy to use!
from Enigma import *
# Create the Enigma machine with 3 different rotors and a reflector
enigma = Enigma([Rotor("I"), Rotor("II"), Rotor("III")], "B")
# Encode a text
print(enigma.encode("Hello World!"))
>>>ILBDA AMTAZ!As you can see.