Skipping elif statement?
问题 Am trying to create a simple encryption/decryption using pycryptodome but keeping getting the following error: ValueError: Error 3 while encrypting in CBC mode after some digging I saw that you get this error if there is not enough data to encrypt, as in there is no padding in effect. The thing is that I've added a padding function. After debugging it seems as if my code literally skips the padding part completely and causes this error. What am I doing wrong? import os, random from Crypto