TheOnionBay / TORrents

📄 🔒 "Torrents" over TOR
3 stars 0 forks source link

AES shortening messages, sometimes #6

Closed BeanOfChaos closed 5 years ago

BeanOfChaos commented 5 years ago

Following code returns empty bytes (i.e. b'') `from aes_encrypt import encrypt from aes_decrypt import decrypt from random_bytes import generate_bytes

key = generate_bytes(16) message = b'abcdef' decrypt(encrypt(message, key), key) `