>>> from aes import AES
>>> from os import urandom
>>>
>>> secret_key = urandom(16)
>>>
>>> cipher = AES(secret_key)
>>>
>>> ciphertext = cipher.encrypt(b"a" * 16)
>>>
>>> print(ciphertext)
b'\xf5\xbcG\xe2\x0b\xb6\xdf\xa2\x96TGk*H\xab\xae'
>>>
>>> plaintext = cipher.decrypt(ciphertext)
>>>
>>> print(plaintext)
b'\xc7\xe0}o\x88a\xfb\xc7"\x07\xab\xd65\xd6\xd8z'
>>> print(b"a" * 16)
b'aaaaaaaaaaaaaaaa'
Shouldn't that decrypt be b'aaaaaaaaaaaaaaaa'?
Shouldn't that decrypt be b'aaaaaaaaaaaaaaaa'?