Rating:

```
#!/usr/bin/env python3
import binascii
key = "JDClkFeX"
def mystery(s):
r = ""
for i, c in enumerate(s):
#print ((i,c))
r += chr(ord(c) ^ ((i * ord(key[i % len(key)])) % 256))
#print (binascii.hexlify(bytes(r, "utf-8")).decode("utf-8"))
#print (len((binascii.hexlify(bytes(r, "utf-8")).decode("utf-8"))))
return binascii.hexlify(bytes(r, "utf-8"))

#print (mystery("easyctf{"))

cipherhex="6525c3b53dc38f2a3813330cc3bfc3965bc3acc3bf77c383c3acc3977603c3b8c3aac390c294c3a0c2a819"
key = "JDClkFeX"

def resolve(cipherhex,key):
flag=""
rang=1
i=0
while rang