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
import base64 | |
from Crypto import Random | |
from Crypto.Cipher import AES | |
class AESCipher: | |
def __init__(self, key): | |
"""Key length should be of size 16, 24 or 32 based on AES function description | |
(eg. len(key) == 32 will provide AES256) |