Created
April 20, 2020 10:51
-
-
Save PaburoTC/c6b2bae5af83cf7f45db8d951ad9fd18 to your computer and use it in GitHub Desktop.
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
class AESCipher(object): | |
def __init__(self, key): | |
self.block_size = AES.block_size | |
self.key = hashlib.sha256(key.encode()).digest() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment