Some web pages are opened, and the code used by the web page can be seen through chrome's code display function. But some web pages are garbled because they are encrypted? Ask experts for answers, such as how to encrypt and how to implement encryption. Thank you. Some web pages are opened, and the code used by the web page can be seen through chrome's code display function. But some web pages are garbled because they are encrypted? Ask experts for answers, such as how to encrypt and how to implement encryption. Thank you.
Reply content:
Some web pages are opened, and the code used by the web page can be seen through chrome's code display function. But some web pages are garbled because they are encrypted? Ask experts for answers, such as how to encrypt and how to implement encryption. Thank you.
The front end is nothing more than HTML, CSS, and JS. Only JS may have logic, if you are talking about encryption JS:
First, this behavior is called "obfuscation" or "compression". It is more appropriate to use special tools to remove the blank characters and comments in JS and replace the variable name with a single letter, you can adjust the function parameters and global variables to confuse them, which increases the difficulty of reading the code.
However, obfuscation is not intended to reduce the size of JS files and improve user experience.
I think it is best to use UglifyJS and Node tools to compress CSS and JS.
On the other hand, there are also some applications, such as some games, such as bitcoin web wallet, which will be encrypted locally in the browser such as AES and RSA to meet the needs of business logic.
In this regard, the library contains CryptoJS, covering the vast majority of General encryption algorithms.