Skip to content

Instantly share code, notes, and snippets.

@me7
Created Mar 30, 2017
Embed
What would you like to do?
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