Skip to content

Instantly share code, notes, and snippets.

@alexpirine
Last active February 9, 2016 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexpirine/c12099a4edc35a41ce8e to your computer and use it in GitHub Desktop.
Save alexpirine/c12099a4edc35a41ce8e to your computer and use it in GitHub Desktop.
Decrypts a cloudflare-encrypted e-mail
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