NationalSecurityAgency / enigma-simulator

An educational demonstration of breaking the Enigma machine
Other
466 stars 86 forks source link

Need message_key_encrypts.pickle file #3

Open daniel-deutscher opened 5 years ago

daniel-deutscher commented 5 years ago

IN[13]

# Next, load in the message key encrypts. 
message_key_encrypts = pickle.load(open('message_key_encrypts.pickle', 'rb'))
# Take a look at the first 30 message key encrypts. 
message_key_encrypts[0:50]

data=>OUT[13] The data in the MasterEnigmaCracker.ipynb file is truncated and the file message_key_encrypts.pickle currently does not exist within repo. Need the original file used for this project or way/suggestion to generate this file via rejewski.py

Thanks

daniel-deutscher commented 5 years ago

Also there exist four files: encrypt1.txt, encrypt2.txt, encrypt3.txt and encrypt4.txt.

daniel-deutscher commented 5 years ago

also chains.pickle

jones268 commented 3 years ago

There is no main function in rejewski.py with parameters however you can call the functions yourself from Python. Be sure you have the Python modules installed listed on top of the file. You can install tqdm and others with pip.

also chains.pickle

To get chains.pickle, either do this from the interpreter or create a new Python file with this content:

from rejewski import *
make_chain_length_dict()

Then run it with the Python interpreter. It is gonna take a while if you use cheap-ass old hardware like me. It create the chains dictionary for all possible key/rotor combinations for Enigma.

python3 chainey.py
17576it [14:23, 20.35it/s]

The chains.pickle file is saved in the same directory as your Python files.