There appears to be an issue with some combinations of rotors.
For example the code below gives the output as ECPRX LNMBQ
.
from python_enigma import enigma
ciphertext = "HELLO WORLD"
plugs="AS LK DE FV GJ CU MW OT PX RZ"
rotors = [("II", "A"), ("IV", "B"), ("III", "C")]
machine = enigma.Enigma(catalog="default", stecker=plugs,
rotors=rotors, reflector="Reflector B", operator=True, word_length=5, stator="military")
machine.set_wheels("EFC")
plain=machine.parse(ciphertext)
print(plain)
This is using python3. Am I doing something wrong?