News for hackers. Stuff that matters.
Re:JSFuck (2012) by raspasov on Sunday September 26, 2021 @01:13AM (#28658576)
Do you consider Google Closure sufficiently good obfuscation?
Re:JSFuck (2012) by zemnmez on Sunday September 26, 2021 @03:16AM (#28659035)
I think closure compiler's 'obfuscation' is an incidental part of its minification passes.
Re:JSFuck (2012) by raspasov on Sunday September 26, 2021 @05:50AM (#28659608)
Got it. Thank you.

I've been using the Google Closure compiler for many years with advanced and every time I look at the code output I'm like "there's no way in a 100 years I would be able to de-obfuscate back to my own code to a great extent". But I don't specialize in reverse engineering, so I might be missing something big.

Re:JSFuck (2012) by stjohnswarts on Sunday September 26, 2021 @08:26AM (#28660335)
Expecting obfuscation to increase security is a fool's errand. However expecting it to cut down on re-use of your code then it will no doubt work.
Re:JSFuck (2012) by zemnmez on Monday September 27, 2021 @12:15AM (#28667028)
personally, I find the code it outputs to be easier to understand often than the source because it simplifies a lot of stuff into the most abstract logic. I think it takes some getting used to for your brain to connect those pieces, though
Re:JSFuck (2012) by raspasov on Monday September 27, 2021 @06:42AM (#28669134)
Fair enough, thank you.

I guess ultra-shortening the names into a,b,c,d,e, etc makes it superficially hard to understand what's going on but I agree on your point about abstract logic.