Last active
February 9, 2016 15:27
-
-
Save alexpirine/c12099a4edc35a41ce8e to your computer and use it in GitHub Desktop.
Decrypts a cloudflare-encrypted e-mail
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
def decrypt_cf_email(email): | |
# a small python function that decrypts a cloudflare-encrypted e-mail | |
email_key = int(email[:2], 16) | |
email_chars = [chr(int(email[k:k+2], 16) ^ email_key) for k in range(2, len(email), 2)] | |
return ''.join(email_chars) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment