Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for equivalently converting Java code into C++ code

An equivalent conversion and code technology, applied in the field of information security, can solve problems such as impossible one-time acquisition and code restoration, and achieve the effects of reducing performance consumption, improving compatibility, and improving stability

Pending Publication Date: 2021-12-24
上海蛮犀科技有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] There have been many mobile security APP reinforcement technology solutions on the market to protect the security of mobile APPs. Among them, the confidentiality of APP codes is one of the most basic protection methods. Generally, the codes are encrypted to ensure the confidentiality of the codes. , but in the process of code running, the code needs to be decrypted and restored as a whole. There will be plaintext code in the running memory, and it is easy to be intercepted by malicious people to obtain the overall plaintext code. Later, more advanced code protection methods are derived, which are no longer necessary. Encrypt the code as a whole, start to encrypt the functions in the code separately, and only run to the corresponding function to decrypt and restore. This technical means is a relatively large improvement, and it is impossible for the attacker to obtain the entire code at one time. files, but there is still the problem of code restoration in memory. Through technical means, code fragments of all functions can be obtained, and then combined, most of the function codes can be obtained

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for equivalently converting Java code into C++ code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0025] The present invention will be further described now in conjunction with accompanying drawing.

[0026] see figure 1 , the present invention provides a kind of method that Java code equivalence is converted into C++ code, comprises the following steps:

[0027] S1: Unpack the pending APP, record it as set A and classify it, and record the dex file as set B;

[0028] S2: traverse all classes in all dex files in collection B, and obtain cla...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of information security, in particular to a method for equivalently converting a Java code into a C++ code, which comprises the following steps of: recording dex files to be unpacked by an APP as a set B; traversing all classes in the dex file in the set B, obtaining class names, function names and machine codes, and storing and recording the class names, the function names and the machine codes as a set C; converting a Java machine code into a C++ code through a user-defined llvm framework, writing the C++ code into a cpp file, further processing and compiling the cpp to generate a static library file, linking the static library file with a preset basic library file to obtain a dynamic library file F, deleting machine codes of elements in a set C, modifying a function mark, and packaging to obtain a set G; backfilling G and F into the app so as to complete the conversion from the Java code to the C++ code. Compared with the prior art, aiming at the problem that the security strength of traditional APP code protection is not enough, the security strength of the code is improved through a new technical means.

Description

technical field [0001] The invention relates to the technical field of information security, in particular to a method for equivalently converting Java codes into C++ codes. Background technique [0002] With the rapid development of the mobile Internet, mobile terminal APPs have become a necessity in people's lives. The APPs of various industries and companies form a rich mobile life scene, which greatly facilitates people's lives. During the process, a large number of security issues emerged, including the risk of source code leakage, core technology leakage, user fund security, and user personal information leakage. During this process, the country has been improving and formulating industry rules and legal restrictions on mobile Internet In the industry, in the process of regulating and restricting the safety of the industry through policy means, it is essential to have the participation of technical means. [0003] There have been many mobile security APP reinforcement...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F21/12G06F8/51G06F21/14
CPCG06F21/12G06F8/51G06F21/14
Inventor 龙柏林张永锋
Owner 上海蛮犀科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products