Skip to content

Instantly share code, notes, and snippets.

@nullableVoidPtr
Last active May 23, 2018 19:37
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nullableVoidPtr/632583d4e34b4b1bf3b92f5b4f5d0c7d to your computer and use it in GitHub Desktop.
Save nullableVoidPtr/632583d4e34b4b1bf3b92f5b4f5d0c7d to your computer and use it in GitHub Desktop.
def decodeScrapeshieldEmail(s):
retval = ""
key = int(s[:2], 16)
for char in [int(s[i:i+2], 16) for i in range(2, len(s), 2)]:
retval += chr(char ^ key)
return retval
#return "".join([chr(c^int(s[:2],2))for c in [int(s[i:i+2],16)for i in range(2,len(s),2))]])
@nullableVoidPtr
Copy link
Author

reverse-engineered from the original javascript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment