The Enigma G simulator


Enigma Home Page

Introduction

The Enigma G was used by the Abwehr.

This Enigma is special in several ways. It works much like the commercial Enigma (it has no Steckers) but the rotors spin more frequently than in the latter. On the other hand, it uses specific rotors that cannot be used in other models.

Example of use of the simulator

1) Print the syntax

$ python3 eG.py
syntax: eG.py UKW LEFT MIDDLE RIGHT ETW RING GRUND [Debug]
Example: echo hello | \
 python3 eG.py G-UKW G-I G-II G-III G-ETW AAAA AAAA

2) To cipher a message

$ echo hello world |  python3 eG.py G-UKW G-I G-II G-III G-ETW AAAA AAAA
IQKSURWHPQ

3) To decipher a message

$ echo IQKSURWHPQ |  python3 eG.py G-UKW G-I G-II G-III G-ETW AAAA AAAA
HELLOWORLD

Download

The Enigma G simulator (TAR)