Created
September 8, 2016 19:09
-
-
Save rendfall/6a7f8bb71fccb3a165384427dc3a68df to your computer and use it in GitHub Desktop.
Anti-Spam Email Encoder
This file contains hidden or 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
| // Example for gmail accounts only >> rot13(tznvy.pbz) | |
| function getEmail(u) { | |
| var c = ':otliam'.split('').reverse().join(''); | |
| var a = String.fromCharCode('0'+8*8); | |
| var h = 'tznvy.pbz'.replace(/[a-zA-Z]/g,function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);}); | |
| return c+u+a+h; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment