TypeError: decrypt() cannot be called after encrypt()
问题 I am writing a simple code of AES encryption. I got stuck at a part where it says decrypt() cannot be called after encrypt(). I scrapped through the internet to find the solution, but unable to do so, maybe because of the lack of proper documentation examples. I tried changing the sequence these lines, but it did not help encrypted = encrypt(message) decrypted = decrypt(encrypted) I have 2 examples Example1 from Crypto.Cipher import AES key = 'ACD310AE179CE245624BB238867CE189' message = 'this