Re: ValueError: Error 3 while encrypting in ECB mode

2017-10-29 Thread Steve D'Aprano
ncrypt("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 mode" % result)

ValueError: Error 3 while encrypting in ECB mode

2017-10-29 Thread Ho Yeung Lee
ot;", 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 = encobj.encrypt("he