Last updated
TARGET = "c-n|TD^zJFp|I'q\"VCj7.mNj4"
result = b''
low = 0
high = 4
while high < len(TARGET):
chars = TARGET[low:high]
c1 = chr(ord(chars[3]) - 27)
c4 = chr(ord(chars[0]) + 26)
c2 = chr(ord(chars[2]) + 4)
c3 = chr(ord(chars[1]) - 19)
if c1 < ' ':
c1 = chr(ord('{') + ord(c1) - 0x1c)
pass
if c3 < ' ':
c3 = chr(ord('{') + ord(c3) - 0x1c)
pass
print(c1.encode() + c2.encode() + c3.encode() + c4.encode())
result = c1.encode() + c2.encode() + c3.encode() + c4.encode() + result
low = high
high += 4
result = chr(ord('a') + ord(TARGET[-1]) - ord('G')).encode() + result
print(result)