This directory contains example scripts demonstrating how to configure and use various Enigma machine models with enigmapython.
- File: enigma_machine_I_example.py
- Description: Setup and usage of the standard German Army Enigma I (Wehrmacht) with 3 rotors and a plugboard.
- File: enigma_machine_I_norway_example.py
- Description: Setup and usage of the Enigma I Norway, a variant used by the Norwegian Police Security Service.
- File: enigma_machine_I_sondermaschine_example.py
- Description: Setup and usage of the Enigma I Sondermaschine, a special machine variant.
- File: enigma_machine_M3_example.py
- Description: Setup and usage of the Enigma M3 (Kriegsmarine) with 3 rotors.
- File: enigma_machine_M4_example.py
- Description: Setup and usage of the Enigma M4 (Kriegsmarine U-boat) with 4 rotors (including Beta/Gamma) and a thin reflector.
- File: enigma_machine_K_example.py
- Description: Setup and usage of the Enigma K, the original commercial Enigma machine from the 1920s with QWERTZ keyboard layout. Note: This model does not have a plugboard.
- File: enigma_machine_B_example.py
- Description: Setup and usage of the rare Enigma B (Swedish model A-133). Note: This model does not have a plugboard.
- File: enigma_machine_D_example.py
- Description: Setup and usage of the commercial Enigma D.
- File: enigma_machine_Z_example.py
- Description: Setup and usage of the Enigma Z (Z30), a numerical-only machine.
- File: enigma_machine_custom_example.py
- Description: Demonstrates how to build a fully customized Enigma machine from scratch using the library's base classes (
Rotor,Reflector,Enigma).
You can run any example directly using python:
python examples/enigma_machine_I_example.py