Joined February 2013
·

Daniel Upton

Atlanta
·
·

Here's a reversible version:
String.prototype.obfuscate = function () { var bytes = []; for (var i = 0; i < this.length; i++) { var charCode = this.charCodeAt(i); // pad the string to 3 digits charCode = String("000" + charCode).slice(-3); bytes.push(charCode); } return bytes.join(''); } String.prototype.deobfuscate = function () { var string = ""; var chunks = this.match(/.{1,3}/g); for (var i = 0; i < chunks.length; i++) { string += String.fromCharCode(parseInt(chunks[i], 10)); } return string; }

Achievements
40 Karma
0 Total ProTip Views