Created
May 27, 2016 07:49
-
-
Save FindHao/5caa7fa829d52b7c1fcdb5076bd575e6 to your computer and use it in GitHub Desktop.
cloudflare 邮件保护混淆的decoder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```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