Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AES Decryption too slow
#1
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!
Reply


Messages In This Thread
AES Decryption too slow - by Hairy_Ape - May-04-2018, 11:13 PM
RE: AES Decryption too slow - by killerrex - May-04-2018, 11:53 PM
RE: AES Decryption too slow - by Hairy_Ape - May-05-2018, 12:03 AM
RE: AES Decryption too slow - by killerrex - May-05-2018, 12:01 PM
RE: AES Decryption too slow - by micseydel - May-05-2018, 12:14 AM
RE: AES Decryption too slow - by Hairy_Ape - May-07-2018, 04:22 PM
RE: AES Decryption too slow - by killerrex - May-07-2018, 09:44 PM
RE: AES Decryption too slow - by Hairy_Ape - May-08-2018, 08:00 PM
RE: AES Decryption too slow - by Hairy_Ape - May-09-2018, 11:05 AM
RE: AES Decryption too slow - by killerrex - May-09-2018, 11:53 AM
RE: AES Decryption too slow - by Hairy_Ape - May-10-2018, 06:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Decryption not working if key has same symbol like text Paragoon2 0 327 Nov-11-2023, 09:32 PM
Last Post: Paragoon2
  encryption and decryption with python ibrahim 1 1,837 May-16-2020, 03:14 PM
Last Post: Larz60+
  cipher decryption tool nightfox82 0 1,347 Mar-25-2020, 06:36 AM
Last Post: nightfox82
  Regarding encryption and decryption naressh1994 1 2,468 Jan-25-2019, 07:26 AM
Last Post: buran
  What is an Encryption And Decryption Lamon112 8 6,977 Jan-14-2017, 10:14 PM
Last Post: Kebap

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020