Skip to content

Instantly share code, notes, and snippets.

@JavaScript-Packer
Created April 29, 2015 02:59
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 JavaScript-Packer/ef83dea0044b2a9f3e03 to your computer and use it in GitHub Desktop.
Save JavaScript-Packer/ef83dea0044b2a9f3e03 to your computer and use it in GitHub Desktop.
Extreme escape for JavaScript code by every character (hex encoding)
function hex(Δ){
return Δ.replace(/./g, function(e){
return "\\x"+e.charCodeAt(0).toString(16);
});
};
alert(hex("JavaScript Packer"));
//extreme JavaScript escaping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment