Skip to content

Instantly share code, notes, and snippets.

@PaburoTC
Created April 20, 2020 10:51
Show Gist options
  • Save PaburoTC/c6b2bae5af83cf7f45db8d951ad9fd18 to your computer and use it in GitHub Desktop.
Save PaburoTC/c6b2bae5af83cf7f45db8d951ad9fd18 to your computer and use it in GitHub Desktop.
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