Skip to content

Instantly share code, notes, and snippets.

@stevedoyle
Last active October 13, 2015 17:58
Show Gist options
  • Save stevedoyle/4234574 to your computer and use it in GitHub Desktop.
Save stevedoyle/4234574 to your computer and use it in GitHub Desktop.
Python AES encryption code snippet
from Crypto.Cipher import AES
key='\x63\x5b\x76\xd1\x71\x5c\xdf\x2a\x69\x99\xc9\x0f\x3b\x23\x13\x02'
iv='\x4c\x84\x2e\x40\x8b\xb0\x73\x01\xe4\x64\x92\x94\xfa\x5b\x73\x0b'
obj = AES.new(key, AES.MODE_CBC, iv)
obj.decrypt(message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment