Created
December 22, 2015 23:59
-
-
Save shankaraman/a308ad3dd65d03aecb7d to your computer and use it in GitHub Desktop.
[ENC] Minor Project
This file contains 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 | |
import base64 | |
# Encryption | |
KEY = 'A'*16 | |
IV = '1'*16 | |
encryption_suite = AES.new(KEY, AES.MODE_CBC, IV) | |
cipher_text = encryption_suite.encrypt("GOODGOODGOODGOOD") | |
encoded = base64.b64encode(cipher_text) | |
with open('base64.txt','w') as f: | |
f.write(encoded) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment