Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Enigma Python Examples

This directory contains example scripts demonstrating how to configure and use various Enigma machine models with enigmapython.

Available Examples

Enigma I

  • File: enigma_machine_I_example.py
  • Description: Setup and usage of the standard German Army Enigma I (Wehrmacht) with 3 rotors and a plugboard.

Enigma I Norway (Norenigma)

Enigma I Sondermaschine

Enigma M3

Enigma M4

  • 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.

Enigma K (Commercial Enigma)

  • 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.

Enigma B (A-133)

  • 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.

Enigma D

Enigma Z

Custom Enigma 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).

How to Run

You can run any example directly using python:

python examples/enigma_machine_I_example.py