Supercharge Your Innovation With Domain-Expert AI Agents!

Java code obfuscation method and system, computer equipment and storage medium

A code obfuscation and computer program technology, applied in the computer field, to achieve high configurability, security, and enhanced security

Pending Publication Date: 2022-02-25
全景智联(武汉)科技有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to solve the problem of lack of effective protection for effective java codes in the prior art, the present invention provides a java code obfuscation method, system, computer equipment and storage medium, the user selects the obfuscation scheme and obfuscation range through self-definition, and has character String encryption ensures that the function logic of the obfuscated code is not affected, which greatly improves the difficulty of code reading, realizes code security, and users have high configurability

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
  • Java code obfuscation method and system, computer equipment and storage medium
  • Java code obfuscation method and system, computer equipment and storage medium
  • Java code obfuscation method and system, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] The present embodiment provides a method for obfuscating java code, which is applied to obfuscate the compiled jar package and the java code in the compilation process, and the method includes the following steps:

[0040] Step 1. Obtain the file to be obfuscated.

[0041] In this embodiment, the file to be confused is a jar package or java code in the compilation stage.

[0042] Step 2, judging the type of the file to be obfuscated, obfuscating the file to be obfuscated, and generating an obfuscated jar package.

[0043] figure 1 It is a flowchart of jar package obfuscation and encryption in the java code obfuscation method according to an embodiment of the present invention. Such as figure 1 As shown, when the file to be obfuscated is a jar package, the jar package obfuscation encryption method includes:

[0044]S201, parsing the jar package, and locating the location of the classes folder;

[0045] S202. Read the configuration, obtain obfuscation rules, and dete...

Embodiment 2

[0058] Such as image 3 As shown, a kind of java code obfuscation system is provided in the present embodiment, the java code obfuscation system adopts the aforementioned java code obfuscation method to obfuscate the jar package after code compilation and the java code in the compiling process; the java code obfuscation The system includes a configuration module 11 , an obfuscation scheme selection module 12 , an obfuscation module 13 and a verification module 14 .

[0059] In this embodiment, the configuration module 11 is configured to read a configuration file, which includes configured character pair classes, methods, and fields. The obfuscation scheme selection module 12 is used to select obfuscated characters, determine non-obfuscated files and obtain obfuscation rules according to the read configuration file.

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 computers, in particular to a java code obfuscation method and system, computer equipment and a storage medium. The method comprises the steps of obtaining a to-be-confused file, judging the type of the to-be-confused file, when the to-be-confused file is a jar package, analyzing the jar package, positioning the position of a classes folder, reading a configuration file, performing confusion replacement, and generating a new jar package; and when the to-be-obfuscated file is a java code in a compiling stage, adding obfuscation tool dependency in the java code, starting an obfuscation tool for obfuscation during compiling, generating a file downloading address of an obfuscated jar packet import or export result, and downloading an import or export result file according to the downloading address. The obfuscation scheme and the obfuscation range can be selected in a user-defined mode, the character string encryption function is achieved, the function logic of the obfuscated code is not affected, the code reading difficulty is greatly improved, the code safety is achieved, and a user has high configurability.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a java code obfuscation method, system, computer equipment and storage medium. Background technique [0002] Java is a C++ type object-based programming language. It has a wide range of usability and is currently a more popular programming language because the Java platform can be installed on a large number of different applicable devices and is widely used for web, app and server development. [0003] In the application of java code, if the compiled jar package is directly placed on the server, once the server is hacked or the file is leaked during the uploading of the jar package, criminals can easily obtain the source code through reverse engineering and guess the code Logic, so as to find system loopholes and carry out attacks, so it is the consensus of the industry to protect the source code. However, there is no effective java code protection method at present. Conte...

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 全景智联(武汉)科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More