Earlier quoted context omitted.
Business people demand it to protect intellectual property without realizing the ease of reversing it / wanting to say they're doing something to protect IP that their own superior will not realize doesn't help. It is making the best of an impossible situation, the paradox of sending your code to every single customer for them to run it while also wishing nobody could see it. The more aggressive they make patent law…
With how mediocre most developers today are, obfuscation is enough.
JavaScript Obfuscation Techniques by Example
21–30 of 75 posts
Re: JavaScript Obfuscation Techniques by Example
#22If you obfuscate client side javascript that is being served in a browser you should get banned from the internet
Re: JavaScript Obfuscation Techniques by Example
#23Why obfuscate, when you can just follow modern trends and use webpack (or similar) which gives you completely unreadable shit.
"Modern"? Webpack/code bundlers is quite an ancient tech by now. Regard it as an intermediate representation (IR) of your code, a stage between your readable source code and browser bytecode/jit. The "shit" is still readable since webpack also generates source maps.
Re: JavaScript Obfuscation Techniques by Example
#24Why obfuscating JS when there is WASM?
Re: JavaScript Obfuscation Techniques by Example
#25If you obfuscate client side javascript that is being served in a browser you should get banned from the internet
Sure, you can de-obfuscate JS but you can also reverse engineer other software.
Re: JavaScript Obfuscation Techniques by Example
#26[1] view-source:https://www.freeslots.com/slot515.min.js?v=84
Re: JavaScript Obfuscation Techniques by Example
#27If you obfuscate client side javascript that is being served in a browser you should get banned from the internet
I can understand the desire to be able to vet code that a website wants to run on your device. I don't see why that preference should create an imperative for websites to either accommodate you or be banned from the internet.
Re: JavaScript Obfuscation Techniques by Example
#28Sorry for the slightly offtopic question: this page caused Chrome on my mobile phone to freeze completely. I had to reboot my phone, and even after that, I had to figure out a way to close the tab without opening Chrome. Did it happen to someone else?
Re: JavaScript Obfuscation Techniques by Example
#29You want to see obfusication? Check out FreeSlots.com. Look at view source on one of the slot machines.[1] Can anyone decode this and figure out the odds generator? [1] view-source: https://www.freeslots.com/slot515.min.js?v=84
I have had to deal with client that thought they could keep some bit of code secret on a browser before. I have had to explain many many times that anything the browser can do a human can do. So if a browser can run the code, at some point a human can too.
Re: JavaScript Obfuscation Techniques by Example
#30You want to see obfusication? Check out FreeSlots.com. Look at view source on one of the slot machines.[1] Can anyone decode this and figure out the odds generator? [1] view-source: https://www.freeslots.com/slot515.min.js?v=84
To answer your question, yes. Someone absolutely can decode that and figure out the odds. If they couldn't then there would be less obfuscation used. A browser ABSOLUTELY has to be able to run the javascript. Anyone dedicated enough can de-compile that javascript to a program. Is it easy? No, but people do it all the time. I have had to deal with client that thought they could keep some bit of code secret on a browse…