Created
July 23, 2014 06:10
-
-
Save blindFS/ca7f0cff20885f598960 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Crypto.Cipher import AES | |
from Crypto.Util import Counter | |
def decrp(): | |
key = '36f18357be4dbd77f050515c73fcf9f2'.decode('hex') | |
message = '69dda8455c7dd4254bf353b773304eec0ec7702330098ce7f7520d1cbbb20fc388d1b0adb5054dbd7370849dbf0b88d393f252e764f1f5f7ad97ef79d59ce29f5f51eeca32eabedd9afa9329' | |
iv = message[:32] | |
iv = int(iv, 16) | |
ctr = Counter.new(nbits=128, initial_value=iv) | |
cipher = AES.new(key, AES.MODE_CTR, counter=ctr) | |
print cipher.decrypt(message.decode('hex')[16:]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment