Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Aes padding
#1
I have a question about padding when encrypting using aes.

Killerrex had previously helped me develop a code for decrypting an AES encrypted string where only only part of the key was know (we were tasked with creating a loop to iterate through possible key values as it was all numeric).

The code decrypts in ECB mode, so there is no IV.

To strip the padding I used:
unpad = lambda s : s [0:-ord (s [-1])]
This worked for an encrypted string with a known key. But for this puzzle, I'm unable to get any readable output.

I was wondering what other padding methods may have been used. Any thoughts?
Reply


Messages In This Thread
Aes padding - by Hairy_Ape - May-21-2018, 10:57 AM
RE: Aes padding - by scidam - May-23-2018, 12:05 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how many bytes in a file before zero padding Skaperen 4 3,269 Feb-03-2019, 12:42 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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