This topic describes how to use HTML5 application security hardening to quickly harden an application and obtain the hardened package.
Prerequisites
You have an unhardened JS package. The package must be in ZIP format and no larger than 100 MB.
ImportantUse caution with JS files that are already obfuscated. They may cause performance issues.
You have purchased the Mobile Security Hardening service or are within the seven-day free trial period.
Procedure
The following steps describe the security hardening process:
Log on to the mPaaS console and select the target App.
Choose Security > Mobile Security Armor > H5 application security hardening in the left-side navigation pane to enter the H5 application security hardening page.
Click Create H5 application security hardening to enter the Upload applications to be hardened page.
Click Upload file to upload the zip file.
After the file is uploaded, the page automatically jumps to the Confirm security hardening Information page. Then, you can confirm the App information and security hardening information.
(Optional) In the HTML5 protection column, select the protection capability you need.
NoteThe HTML5 protection reduces the efficiency of the JS code running. A higher level of HTML5 protection has a greater impact on the code running efficiency.
In the HTML5 protection column, select the JS file that needs to be protected.
Click Confirm hardening to perform the security hardening.
After the security hardening is completed, enter the Security hardening details page.
You can click Download security hardened package to download a hardened JS package. In the Security hardening details column, you can check the size of the hardened file and the security capabilities achieved.
What to do next
After hardening, check that key components function correctly. If the package is abnormal after hardening, submit a ticket or search for group number 145930007362 to join the DingTalk group for help.