Merge eb76a67451
into a8f9e9d65c
This commit is contained in:
commit
e8e086a145
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ commands = {'info' : '{"system":{"get_sysinfo":{}}}',
|
||||||
# XOR Autokey Cipher with starting key = 171
|
# XOR Autokey Cipher with starting key = 171
|
||||||
def encrypt(string):
|
def encrypt(string):
|
||||||
key = 171
|
key = 171
|
||||||
result = "\0\0\0\0"
|
result = "\0\0\0"+chr(len(string))
|
||||||
for i in string:
|
for i in string:
|
||||||
a = key ^ ord(i)
|
a = key ^ ord(i)
|
||||||
key = a
|
key = a
|
||||||
|
|
Loading…
Add table
Reference in a new issue