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

Method, system and device for preventing decompilation and storage medium

A technology of decompilation and Boolean expressions, applied in the direction of program/content distribution protection, etc., to prevent decompilation, reduce risks, and improve the difficulty of understanding

Pending Publication Date: 2022-07-05
HANGZHOU PINGPONG INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, due to the above characteristics of the Java language, there is a risk that the Java Class file will be decompiled
Criminals can easily find the internal interface of the software by decompiling the package into source code through the obtained package

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, system and device for preventing decompilation and storage medium
  • Method, system and device for preventing decompilation and storage medium
  • Method, system and device for preventing decompilation and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0051] The embodiment of the present invention provides a method for preventing decompilation, such as figure 1 As shown, the method includes:

[0052] S101. Add a first preset member variable and a second preset member variable to the initial source code to obtain a first target source code, wherein the first preset member variable and the second preset member variable are different.

[0053] Optionally, in an optional embodiment of...

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 embodiment of the invention provides a method, system and device for preventing decompilation and a storage medium, and the method comprises the steps: adding a first preset member variable and a second preset member variable in an initial source code, obtaining a first target source code, obtaining a Boolean expression of each judgment logic code block in the first target source code, and utilizing the first preset member variable and the second preset member variable to perform replacement operation on the Boolean expression according to a preset replacement rule to obtain a second target source code, compiling the second target source code to obtain an initial Class file, and performing homonymy processing on the initial Class file according to a preset constant homonymy rule to obtain a target Class file. Based on the difference between Java language specifications and virtual machine specifications, the target Class file can be normally operated by the virtual machine and cannot be decompiled into legal Java source codes with readability through replacement operation and homonymy processing. Therefore, the Java source code can be prevented from being decompiled.

Description

technical field [0001] The present invention relates to the field of computer security, in particular to a method, system, device and storage medium for preventing decompilation. Background technique [0002] Java, as an object-oriented programming computer language, has been widely used because of its high efficiency, open source, and easy maintenance. However, due to the above-mentioned characteristics of the Java language, the Java Class file is at risk of being decompiled. The criminals decompile the package into source code through the obtained package, and it is easy to find the internal interface of the software. Through this internal interface, the verification mechanism of the software is bypassed by illegal means, so as to steal or destroy the information in the server. [0003] At present, the technical means to prevent decompilation are mainly by encrypting Java Class files or obfuscating variable names. However, since the Java Class file needs to run in the v...

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/14
CPCG06F21/14
Inventor 戴根泉陈宇汪宁芦帅陈鹏
Owner HANGZHOU PINGPONG INTELLIGENT TECH CO LTD
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