Re: ValueError: Error 3 while encrypting in ECB mode

2017-10-29 Thread Steve D'Aprano
iphertext = encobj.encrypt("hello") > Traceback (most recent call last): > File "", line 1, in > File "C:\Python27\lib\site-packages\Crypto\Cipher\_mode_ecb.py", line 124, > in encrypt > raise ValueError("Error %d while encrypting in ECB

ValueError: Error 3 while encrypting in ECB mode

2017-10-29 Thread Ho Yeung Lee
ll last): File "", line 1, in File "C:\Python27\lib\site-packages\Crypto\Cipher\_mode_ecb.py", line 124, in encrypt raise ValueError("Error %d while encrypting in ECB mode" % result) ValueError: Error 3 while encrypting in ECB mode >>> ciphertext = enc