ibraimgm / enigma

A simple enigma machine in Go
MIT License
8 stars 2 forks source link

How to use this implementation correctly? #6

Open lordofscripts opened 10 months ago

lordofscripts commented 10 months ago

I think there are a few things that don't quite add up, so could you please explain how to properly play with this Enigma implementation?

For example, here there is one of the code sheets used by the Germans, in particular OKH Maschinenschlüssel A #39.

(using Datum #20) As you can see, every day (1..31) the settings changed. There is the Walzenlage which is equivalent to your Rotor flag (-r V,II,III).

There is also the Ringstellung 07,18,04 which is the same as letters GRD. However, it is not clear what the Kenngruppen values are used for. Are any of those four triads the --window parameter? or are they something else?

BTW I modified your code so that I can specify the Plugboard setting which in your current version is always NoPlugboard and cannot be changed by the user. By using the plugboard settings from the code sheet, I cannot get it to validate well.