6. How is minification different from obfuscation, compression, encryption, or uglification?
Encryption:The process of converting plain data into encoded data is known as encoding. This encrypted, or encoded, data is called ciphertext, and it requires a secret key to decrypt it. Encrypted code cannot be executed by the browser. Encryption is a security feature that does not always result in smaller file size.
Obfuscation:This technique is used to conceal business logic. The code is changed in such a way that it is no longer readable by humans. Reverse engineering becomes harder as a result of this. Obfuscation differs from encryption in that the code is still understandable and executable by computers. Obfuscation is achieved by altering the names of variables, functions, and members. Although this is not the primary objective of obfuscation, the resulting reduction in file size helps performance.
Compression:Data compression is a technique for reducing the number of bits required to represent information. Data compression can help you save space on your hard drive, speed up file transfers, and lower your network bandwidth expenses. Some files, such as Microsoft Word documents, can be reduced to 90% of their original size.