Skip to content

Instantly share code, notes, and snippets.

@Narvey
Created February 1, 2019 19:04
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 Narvey/94bc5a4c6be8c6a5c7ac3f96c6d845ba to your computer and use it in GitHub Desktop.
Save Narvey/94bc5a4c6be8c6a5c7ac3f96c6d845ba to your computer and use it in GitHub Desktop.
a snippet of a decoder I wrote real quick for this dumb hex-based encoding Proofpoint uses for email subject lines
working = working.replace(/C/,'2')
.replace(/H/,'7')
.replace(/E/,'4')
.replace(/A/,'0')
.replace(/D/,'3')
.replace(/B/,'1')
.replace(/O/,'e')
.replace(/J/,'9')
.replace(/K/,'a')
.replace(/M/,'c')
.replace(/N/,'d')
.replace(/L/,'b')
.replace(/I/,'8')
.replace(/F/,'5')
.replace(/P/,'f')
.replace(/G/,'6')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment