String Obfuscation

Run Settings
LanguageJavaScript
Language Version
Run Command
String.prototype.obfuscate = function () { var bytes = []; for (var i = 0; i < this.length; i++) { bytes.push(this.charCodeAt(i).toString(16)); } return bytes.join('$'); } String.prototype.deobfuscate = function () { var arr = this.split('$'); return arr.map(function(c) { return String.fromCharCode(parseInt(c, 16)) }).reduce(function(a, b) {return a + b}) } var s = "hello world" console.log(s.obfuscate()) console.log(s.obfuscate().deobfuscate())
Editor Settings
Theme
Key bindings
Full width
Lines