from Crypto.Cipher import AES
def code(crypt):
crypt1=(b"%r"%crypt)
obj = AES.new("1234567890123456", AES.MODE_CBC,"1234567890123456")
crypt1 = obj.encrypt(crypt1)
crypt1=crypt1.decode('utf-8')
return crypt1
print(code("text567890123456"))
Traceback (most recent call last):
ValueError: Input strings must be a multiple of 16 in length
[Program finished]