[pycrypto] AES, python 2.7 vs 3

Dwayne Litzenberger dlitz at dlitz.net
Thu Feb 6 08:49:50 PST 2014

On Mon, Feb 03, 2014 at 03:51:06PM +0100, Mirko Dziadzka wrote:
>Without testing or verifying:
>You should probably use bytes in Python 3, not characters.

Yeah, this is a known bug.   Under Python 3, PyCrypto should raise a 
TypeError in most places where unicode strings are used instead of 
bytes, but right now it just does weird things.  Sorry about that.

Dwayne C. Litzenberger <dlitz at dlitz.net>
  OpenPGP: 19E1 1FE8 B3CF F273 ED17  4A24 928C EC13 39C2 5CF7

More information about the pycrypto mailing list