This commit is contained in:
Uwe Winter 2017-09-22 15:21:13 +00:00 committed by GitHub
commit e8e086a145

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