Closed ZAdamMac closed 4 years ago
We've eliminated configuration issues. However, Michael found a mention in an old article that the Engima steps prior to encoding. This is the opposite of how my system steps (stepping after encoding).
It should be relatively trivial to change this behaviour and test.
It's worthwhile noting as well that the M4 used "UKW C Thin" from the default catalogue, not the normal C reflector.
I had a chance to review some other similar implementations in source and I can confirm, absolutely, that the wheels need to step first.
This still does not directly solve the issue, so I now need to determine if the wheels are stepping correctly. Gross.
Recent changes merged to master resolved this issue. Full blog post on the "why" forthcoming, but in general, the following changes were made:
Describe the bug User Michael Zimmermann michael_zimmermann@gmx.de reported that he was having trouble decrypting a known-plaintext message generated on an original Enigma M4. This message was originally produced during the war and is fully decryptable using other emulation platforms.
To Reproduce Steps to reproduce the behavior:
Expected behavior A new key should be generated and written to configuration, and that key should be used throughout the rest of the backup process.
Log/Console Output Where possible, add the output of the Logs or Console when the problem occurs.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
Reflector: C Greek: B Wheels: 568 Wheel positions: YOSZ Rings: AAEL Plugs: AE BF CM DQ HU JN LX PR SZ VW
Message indicator groups: DUHF TETO
Ciphertext (without indicator groups): LANOTCTOUARBBFPMHPHGCZXTDYGAHGUFXGEWKBLKGJWLQXXTGPJJAVTOYJFGSLPPQIHZFXOEBWIIEKFZLCLOAQJULJOYHSSMBBGWHZANVOIIPYRBRTDJQDJJOQKCXWDNBBTYVXLYTAPGVEATXSONPNYNQFUDBBHHVWEPYEYDOHNLXKZDNWRHDUWUJUMWWVIIWZXIVIUQDRHYMNCYEFUAPNHOTKHKGDNPSAKNUAGHJZSMJBMHVTREQEDGXHLZWIFUSKDQVELNMIMITHBHDBWVHDFYHJOQIHORTDJDBWXEMEAYXGYQXOHFDMYUXXNOJAZRSGHPLWMLRECWWUTLRTTVLBHYOORGLGOWUXNXHMHYFAACQEKTHSJW
Plaintext:
KRKRALLEXXFOLGENDESISTSOFORTBEKANNTZUGEBENXXICHHABEFOLGENDENBEFEHLERHALTENXXJANSTERLEDESBISHERIGXNREICHSMARSCHALLSJGOERINGJSETZTDERFUEHRERSIEYHVRRGRZSSADMIRALYALSSEINENNACHFOLGEREINXSCHRIFTLSCHEVOLLMACHTUNTERWEGSXABSOFORTSOLLENSIESAEMTLICHEMASSNAHMENVERFUEGENYDIESICHAUSDERGEGENWAERTIGENLAGEERGEBENXGEZXREICHSLEITEIKKTULPEKKJBORMANNJXXOBXDXMMMDURNHFKSTXKOMXADMXUUUBOOIEXKP