Fix for #191 with thanks to @linusbarth

pull/291/head
Colin Kuebler 2019-10-04 13:31:14 -04:00
parent 55f2ae5a2d
commit ec789ad702
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ from crc import crc_32
from Crypto.Cipher import AES
pad = lambda data, block_size : data + ('\0' * ( (block_size - len(data)) % block_size ) )
aes = AES.new( "a3c6794oiu876t54", AES.MODE_ECB, '' )
encrypt = lambda data : aes.encrypt( pad(data, 16) )
aes = AES.new( b'a3c6794oiu876t54', AES.MODE_ECB )
encrypt = lambda data : aes.encrypt( pad(data, 16).encode() )
def encode_pw( pw ):
r = []