Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enigma S rotor II may use a wrong wiring (according to what's documented over the internet) #147

Open
denismaggior8 opened this issue Jan 31, 2024 · 3 comments
Assignees
Labels

Comments

@denismaggior8
Copy link

denismaggior8 commented Jan 31, 2024

Steps to reproduce the bug

  1. Navigate to cryptii.com.
  2. Use the following machine configurations

Machine type: Enigma S
Rotor 1: type I, position 1, ring 1
Rotor 2: type II, position 1, ring 1
Rotor 3: type III, position 1, ring 1

  1. Wipe the plugboard field
  2. Include foreign chars
  3. Encode the string "uadenis" (omitting the double quotes)

The output will be "gkkdooa", but I expected "gkkdjta".

Looking at the code into Enigma.js, I found that Enigma S rotor II reports this wiring "UEMOATQLSHPKCYFWJZBGVXINDR" instead of the wiring documented over the internet which is "UEMOATQLSHPKCYFWJZBGVXIDNR".

It seams that the trailing 3 chars are different (Cryptii uses NDR instead of DNR).

Please have a look of https://www.cryptomuseum.com/crypto/enigma/wiring.htm#12

Could you please clarify?

Thanks.
Denis

@denismaggior8
Copy link
Author

Anyone here?

@ffraenz
Copy link
Member

ffraenz commented Mar 15, 2024

Hi Denis, thank you for reporting this bug. I can confirm that uemoatqlshpkcyfwjzbgvxidnr is the correct wiring for wheel II of the Enigma S “Sondermaschine”. I'll prepare an update to fix this.

@ffraenz ffraenz self-assigned this Mar 15, 2024
@denismaggior8
Copy link
Author

denismaggior8 commented Mar 15, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants