Genkeys software


Enigma Home Page

The genkeys software

I wrote a little program (download) that generates key lists. It has several options, here is a simple example of use:

$ python3 genkeys.py
Usage:
 -h          This help
 -N nets     The number of Networks (by default one)
 -H header   Header, you can use this several times
             If nets > 1, the headers will be different
 -n          No Fields (remove the name of fields)
 -W n        The nomber of rotors [3,5,8], 5 by default
 -R          Ringstellung in letter (in number by default)
 -G          Grundstellung in letter (in number by default)
 -K          Print the Kennzeichnung in place of Kenngruppen
 -D          Print the key only for one day
 -M          Print a whole month (only one key by default)
 -S          Steckers in number (in letter by default)
 -P n        The numbers of steckers (10 by default)
             If a comma is present, that means -P min,max
 -C          The CSKO constraint applies
 -F fields   The fields, by default:  -F DWRSK
    D: Day, W: Walzenlage, R: Ringstellung, G: Grundstellung
    S: Steckers, K: Kenngruppen, E: Space, e: Space[in header]
    navy: Day(only one two), Walz above Ring
 -Z          Print numbers preceded by zero

$ python3 genkeys.py -M  
Tag Walzenlage    Ringst.    Steckerverbindungen            Kenngruppen
 31 III  V    II    7 20 17  CN FP EL BY GR HQ JS MT KX OW  eft tfi jln pok
 30 IV   III  I    16 26 26  GZ QU FY IO CS AT MV LX BE HK  zyn khc lno wfa
 29 V    II   I    26  2 20  VZ OR IQ LP AN EJ HK FY UX GT  ync kct bmz utl
 28 V    III  I    20  7 16  LQ CV SX AT ER FK PU MZ GH IN  lvk eig jmu frq
 27 III  V    II   20  9 16  FV AY QZ TU GX MP NO CH SW KR  tys ocw mgc iqp
…