defencrypt(text): for i inrange(len(text)): if i == 18: text[i] ^= 0x13 else: if i % 2 == 0: tmp = text[i + 2] else: tmp = text[i] - i text[i] = i ^ tmp
defdecrypt(text): for i inrange(len(text) - 1, -1, -1): if i == 18: text[i] ^= 0x13 else: tmp = text[i] ^ i if i % 2 == 0: text[i + 2] = tmp else: text[i] = tmp + i