pyaes icon indicating copy to clipboard operation
pyaes copied to clipboard

Support older Python 2.7 versions

Open clach04 opened this issue 7 years ago • 1 comments

Python 2.7.2 and 2.7.3 struct.unpack() fail with:

error: unpack requires a string argument of length 4

If key is passed in as a bytearray parameter, this is fine in later 2.7.x versions and Python 3.x. Casting as bytes() works for both Python 2.7.x and 3.x.

http://stackoverflow.com/questions/20612587/struct-unpack-with-bytearrays has more information

clach04 avatar May 02 '17 04:05 clach04

Can this be merged?

clach04 avatar Dec 02 '17 23:12 clach04