Skip to content

Instantly share code, notes, and snippets.

@me7
Created March 30, 2017 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save me7/c680e69de8d3aeba552784e254cc3b8e to your computer and use it in GitHub Desktop.
Save me7/c680e69de8d3aeba552784e254cc3b8e to your computer and use it in GitHub Desktop.
python aes

lau setup

from Crypto.Cipher import AES

bs = AES.block_size
cipher = AES.new("password;")
in_file = open("f:/Applications/ISO/Office97yjlhs.aes","rb")
chunck = cipher.decrypt(in_file.read(1024*bs))
out_file  = open("out.dat","wb")
out_file.write(chunck)
out_file.close()
in_file.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment