How to encrypt webpages

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.