May-04-2018, 11:13 PM
Hi everybody
I’m still fairly new to python so please bear with me if I ask any daft questions.
I’m currently working on a crypto challenge to decode some message encoded with AES 256.
Within the challenge we know the first 24 bits of the password used for encryption. We also know that it’s only numeric.
I’ve written a script that tries decoding the message. Since I need to figure out the last 8 bits of code, I start with 00000000, add it to the end of the password, decrypt the message and write the result to a file. I then increment this figure by 1, and repeat the process. Eventually it will iterate every single possible combination and I will have the decoded output written to file.
The down side is that working it’s way through 100,000,000 attempts takes time. Included in the code is a counter so I can see the progress. I’ve had it running for many hours and not even hit the ten million mark.
The other problem isn’t that the output file size gets very large and causes the script to hang.
Anyone got any suggestions for a more efficient way of doing this?
Thanks!
I’m still fairly new to python so please bear with me if I ask any daft questions.
I’m currently working on a crypto challenge to decode some message encoded with AES 256.
Within the challenge we know the first 24 bits of the password used for encryption. We also know that it’s only numeric.
I’ve written a script that tries decoding the message. Since I need to figure out the last 8 bits of code, I start with 00000000, add it to the end of the password, decrypt the message and write the result to a file. I then increment this figure by 1, and repeat the process. Eventually it will iterate every single possible combination and I will have the decoded output written to file.
The down side is that working it’s way through 100,000,000 attempts takes time. Included in the code is a counter so I can see the progress. I’ve had it running for many hours and not even hit the ten million mark.
The other problem isn’t that the output file size gets very large and causes the script to hang.
Anyone got any suggestions for a more efficient way of doing this?
Thanks!