AES-Python icon indicating copy to clipboard operation
AES-Python copied to clipboard

add an int() to make the i/4 be a interger rather than a float

Open lkcp opened this issue 5 years ago • 3 comments

In python3, a integer divide another interger will generate a float , in "aes.py" , line 58, line 83, if we don not add an int to it ,there will be a TypeError: list indices must be integers or slices, not float

lkcp avatar Dec 07 '20 09:12 lkcp

In my pull-request, I already proposed a solution to the same problem. But this repository seems to be dead

L3odr0id avatar Feb 08 '21 13:02 L3odr0id

Another more elegant way is matrix[i // 4].append(byte)

Morris-Wei avatar Oct 23 '21 07:10 Morris-Wei

Another more elegant way is matrix[i // 4].append(byte)

Yeah, I did exactly the same thing in #8

L3odr0id avatar Oct 23 '21 07:10 L3odr0id