Works with H100 (AU) HW: 2.0, SW:1.0.10 now

This commit is contained in:
Uwe Winter 2017-09-23 01:19:44 +10:00
parent a8f9e9d65c
commit eb76a67451
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ commands = {'info' : '{"system":{"get_sysinfo":{}}}',
# XOR Autokey Cipher with starting key = 171
def encrypt(string):
key = 171
result = "\0\0\0\0"
result = "\0\0\0"+chr(len(string))
for i in string:
a = key ^ ord(i)
key = a