All Products
Search
Document Center

Mobile Platform as a Service:HTML5 Apps Security Hardening

Last Updated:Dec 02, 2025

This article guides you on how to use HTML5 security hardening to quickly harden your App and obtain a security hardening package.

Prerequisites

  • You have prepared the JS package which is not hardened. Note that the JS package should be in zip format, and its size should be ≤ 100 MB. 

    Important

    Please choose obfuscated JS files with caution, as they may cause performance issues.

  • You have purchased the Mobile Security Armor (MSA) service, or you are offered the seven-day free trial period.

Procedure

The following steps describe the security hardening process:

  1. Log on to the mPaaS console and select the target App. 

  2. Choose Security Mobile Security Armor > H5 application security hardening in the left-side navigation pane to enter the H5 application security hardening page. 

  3. Click Create H5 application security hardening to enter the Upload applications to be hardened page.

  4. Click Upload file to upload the zip file. 

  5. 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.

  6. (Optional) In the HTML5 protection column, select the protection capability you need. 

    Note

    The 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. 

  7. In the HTML5 protection column, select the JS file that needs to be protected. 

  8. Click Confirm hardening to perform the security hardening. 

  9. After the security hardening is completed, enter the Security hardening details page. 

  10. 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.

Next step

After the security hardening, make sure that the key components such as the upgrade and hotpatch components function normally. If the installation package functions abnormally after hardening, please submit a ticket or search for the group number 145930007362 with DingTalk to join DingTalk group for further communication.