Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to encrypt the Android apk released by unity

2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)05/31 Report--

Unity released Android apk how to encrypt, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Security issues of Unity3D programs Code Security issues

The core assembly file Assembly-CSharp.dll of Unity3D program is a standard .NET file format, with rich metadata information such as method name, class name, type definition and so on. It can be easily decompiled and tampered with by using tools such as DnSpy, and the code logic, class name and method name can be seen at a glance. Once the code logic is decompiled, it is easy to breed various types of plug-ins and destroy the balance of the game. If there are loopholes in the code logic, it is also easy to be excavated and exploited, which may cause unexpected losses to developers.

Resource security issues

In the stage of compilation and packaging, Unity3D programs package resources into Asset Bundle files through the Unity editor. Asset Bundle is a public compressed class file format, which can be parsed, displayed and extracted using tools such as Asset Studio. If it is not protected, it is easy to be stolen for secondary development. For online games, we can also change the material properties of some scene resources to transparent to achieve perspective.

Requirement 1: encryption protection of Android U3D-APK

There are two compilation methods: ill2cpp and mono. Different compilation methods, encryption methods are also different. Extract the Android Unity3D apk and check the lib library directory. If the lib directory contains libmono.so libraries, then mono is selected as the Unity3D compilation option, and the entire apk directory needs to be shelled.

If there is a libil2cpp.so library in the lib directory, then IL2CPP is selected as the Unity3D compilation option, and the so library in the lib directory needs to be protected.

Encryption tool

Virbox Protector version 1.6. Trial download: https://shell.virbox.com/apply.html

Encryption example: angrybots5.5.3.apk (compilation option: mono)

Encryption process

Import angrybots5.5.3.apk into VirboxProtector

Set encryption options and resource encryption

Start protecting.

After the shell is successfully added, the ssp.apk is generated, and then the ssp.apk after the shell is re-signed and packaged before it can be installed normally.

Encryption effect code encryption effect

Decompilation effect of code before encryption

Decompilation effect of encrypted code

Comparison of resource encryption effect

Requirement 2: control equipment program authorization solution 1: introduction of elite 5 encryption lock scheme

Elite 5 encryption lock is a USB encryption lock, Android devices must be able to support plug-in USB devices, Elite 5 can control the use of software time, times, functional modules and so on. Unplug the encryption lock and the device will not be able to run U3D programs.

Solve the problem

Prevent random copying of software

Limit the usage time of the software

Limit the number of times software is used

How to use

Elite 5 encryption lock can be used with Virbox Protector, on the one hand, do code and resource encryption, and at the same time do software authorization and control. At the same time, the elite 5 encryption lock also provides SDK, which can quickly realize the authorization of writing lock without code development. Use tools to operate encryption and write locks throughout the process. Just go to Shield Mall and buy a set of development kits to start testing.

Brief introduction of solution 2:Smart License solution

Smart License supports program authorization control on Android and ARM platforms in the form of authorization codes (16-digit letters and numbers), which can quickly implement one-code-one-machine and one-code multi-machine solutions. At the same time, it can quickly realize the time limit of the software and the limited use of the function module.

Functional features

Bind hardware to prevent copying

Authorized devices generate local cache files and bind to the device hardware to effectively prevent license theft by copying files

Authorization intellectualization

Unicom authorization activation, usage, equipment information barriers, a comprehensive summary to provide developers with detailed business data, assist developers to implement marketing strategies and improve products

Authorization automation

The automatic activation and automatic recovery of authorization reduce the management work of developers, reduce the support workload in the process of product promotion, and improve the product experience.

Visual data display board

Visual data presentation allows developers to control the use of authorization

Extensive support and flexible application

Support hardware products include (not limited to) Huawei Haisi, Dahua, Haikang fluorite and other smart cameras; support for use on networked or unnetworked devices

How to use

Smart License provides a free trial, first of all, you need to sign up for a VirboxLM developer account (https://developer.lm.virbox.com/). After registration, you can log in to VirboxLM to generate and manage the authorization code. You can contact Shansi Digital Shield to customize SDK to do encryption and authorization development.

After reading the above, do you know how to encrypt Android apk released by unity? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report