Obfuscation – What is Obfuscation in Javascript? Why Obfuscation is used?

In this post, we will discuss more on obfuscation and where it is used and its advantages.

What is Obfuscation?

Obfuscation is the deliberate act of creating obfuscated code, i.e. source or machine code that is difficult for humans to understand. It is something similar to encryption however machine can able to understand the code and able to execute the code.

Why are open source projects obfuscated?

Code size will be reduced.

In JavaScript, download time will reduce.

Most of the Open source javascript projects are minified to reduce the download time and to reduce the code size. During minification, minified file and map file will get generated. Using map file actual code can be retrieved. Map file for the above angular js file will be

If you are developing enterprise application, Then I believe you can use a product like Jscrambler for obfuscating your code. Reverse engineering of obfuscated code is really difficult hence we can hide the business logic and core logic from outside world.