Created
February 1, 2019 19:04
-
-
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
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
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