solution
This commit is contained in:
19
weird_snake/rec.py
Executable file
19
weird_snake/rec.py
Executable file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/env python
|
||||||
|
input_list = [4, 54, 41, 0, 112, 32, 25, 49, 33, 3, 0, 0, 57, 32, 108, 23, 48, 4, 9, 70, 7, 110, 36, 8, 108, 7, 49, 10, 4, 86, 43, 110, 43, 88, 0, 67, 104, 125, 9, 78]
|
||||||
|
key_str = 'J'
|
||||||
|
key_str = '_' + key_str
|
||||||
|
key_str = key_str + 'o'
|
||||||
|
key_str = key_str + '3'
|
||||||
|
key_str = 't' + key_str
|
||||||
|
|
||||||
|
key_list = [ord(char) for char in key_str]
|
||||||
|
|
||||||
|
while len(key_list) < len(input_list):
|
||||||
|
key_list += key_list
|
||||||
|
|
||||||
|
result = [a^b for (a, b) in zip(input_list, key_list)]
|
||||||
|
|
||||||
|
result_text = ''.join(map(chr, result))
|
||||||
|
|
||||||
|
print(result_text)
|
||||||
|
|
||||||
Reference in New Issue
Block a user