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

Fixed Rotor turn later than expect #2

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

sfc9982
Copy link

@sfc9982 sfc9982 commented Sep 23, 2021

Now the output match to
https://piotte13.github.io/enigma-cipher/
and
https://www.101computing.net/enigma/enigma-M3.html
I only modified the python file

@sfc9982
Copy link
Author

sfc9982 commented Sep 25, 2021

And you can Press Enter in input bar to run Enigma.
The original version cant

@@ -324,8 +330,9 @@ def plugboard(mssg,lstplugboard1=dfltPB1,lstplugboard2=dfltPB2):
#set everything to initial position so it works again for next character in for loop in rotor 3
reverse=False

def code():
global finalmsg, countf, countm, exportCounter, exportRotors
def code(*event):
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You used entry.bind("<Return>", code),
so you need to specify a optional parameter

@sfc9982
Copy link
Author

sfc9982 commented Jun 20, 2023

@khpandya

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

Successfully merging this pull request may close these issues.

1 participant