Skip to content

Instantly share code, notes, and snippets.

@FindHao
Created May 27, 2016 07:49
Show Gist options
  • Save FindHao/5caa7fa829d52b7c1fcdb5076bd575e6 to your computer and use it in GitHub Desktop.
Save FindHao/5caa7fa829d52b7c1fcdb5076bd575e6 to your computer and use it in GitHub Desktop.
cloudflare 邮件保护混淆的decoder
```python
def decode(encode_email):
k = int(encode_email[:2], 16)
ans = ''
for i in range(2, len(encode_email)-1, 2):
a = int(encode_email[i:i+2], 16)
a ^= k
ans += chr(a)
print(ans)
decode("your_encoded_email")
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment