mirror of
https://github.com/mjg59/python-broadlink.git
synced 2024-11-22 15:10:12 +01:00
* Fixes invalid byte string (b) for padding (#97, #107) * Change version to 0.5
This commit is contained in:
parent
f7e30344c5
commit
2e2c8ef1a1
@ -248,7 +248,7 @@ class device:
|
||||
# pad the payload for AES encryption
|
||||
if len(payload)>0:
|
||||
numpad=(len(payload)//16+1)*16
|
||||
payload=payload.ljust(numpad,"\x00")
|
||||
payload=payload.ljust(numpad,b"\x00")
|
||||
|
||||
checksum = 0xbeaf
|
||||
for i in range(len(payload)):
|
||||
|
Loading…
Reference in New Issue
Block a user