Hacker News new | ask | show | jobs
by hwbunny 756 days ago
Will it untangle heavily obfuscated code?
1 comments

JavaScript isn’t obfuscated.

It’s ulgified and minified.

Uglification is the process where function names and other items are shortened into smaller names which reduces the payload size

For example

MyFunction(){

Const myVar = 5

}

Could become

a(){const b= 5}

Another common example of this not being true is Google's closure compiler, which does non trival code transforms (inline, peephole ops, ect..)
It can definitely be obfuscated as well as minified.
Not always true, see recapcha's JS for example. It embeds an interpeter and then an obfuscaed program that runs in it.