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

Java code encasing method and system

A code and source code technology, applied in the direction of program/content distribution protection, etc., can solve the problems of low code security, code confusion, etc., to achieve the effect of low code intrusion, increase the packing mechanism, and increase the difficulty of cracking

Inactive Publication Date: 2020-08-18
PING AN TECH (SHENZHEN) CO LTD
View PDF0 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The common practice in the industry for Java application source code protection is code obfuscation. However, the obfuscated code only replaces key characters, and the internal code logic can still be obtained through analysis, resulting in low code security.

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 encasing method and system
  • Java code encasing method and system
  • Java code encasing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] refer to figure 1 , which shows a flow chart of the steps of the java code packing method in Embodiment 1 of the present invention. It can be understood that the flowchart in this method embodiment is not used to limit the sequence of execution steps. An exemplary description is given below taking the computer device 2 as the execution subject. details as follows.

[0053] Step S100, receiving the source code to be processed, and acquiring the code type of the source code to be processed, where the source code to be processed is java source program code.

[0054] Specifically, the source code to be processed is the source code of the java program; code types of the source code to be processed include interfaces, entity classes, and core code classes.

[0055] Step S102, performing code layering on the source code to be processed according to the code type and preset rules to obtain the code to be obfuscated.

[0056]Specifically, the default rules are obfuscation ru...

Embodiment 2

[0094] read on Figure 6 , shows a schematic diagram of the program modules of Embodiment 2 of the java code packing system of the present invention. In this embodiment, the java code packing system 20 may include or be divided into one or more program modules, one or more program modules are stored in a storage medium and executed by one or more processors, To complete the present invention, and can realize the packing method of above-mentioned java code. The program module referred to in the embodiment of the present invention refers to a series of computer program instruction segments capable of completing specific functions, which is more suitable than the program itself to describe the execution process of the packing system 20 of java codes in the storage medium. The following description will specifically introduce the functions of each program module of the present embodiment:

[0095] The receiving module 200 is configured to receive the source code to be processed,...

Embodiment 3

[0124] refer to Figure 7 , is a schematic diagram of the hardware architecture of the computer device according to Embodiment 3 of the present invention. In this embodiment, the computer device 2 is a device capable of automatically performing numerical calculation and / or information processing according to preset or stored instructions. The computer device 2 may be a rack server, a blade server, a tower server or a cabinet server (including an independent server, or a server cluster composed of multiple servers) and the like. Such as Figure 7 As shown, the computer device 2 at least includes, but is not limited to, a memory 21, a processor 22, a network interface 23, and a java code packing system 20 that can communicate with each other through a system bus. in:

[0125]In this embodiment, the memory 21 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for e...

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 discloses a java code encasing method, which comprises the steps of performing code layering on a to-be-processed source code according to a code type and a preset rule to obtain a to-be-obfuscated code; compiling the to-be-obfuscated code through a compiling tool to obtain a compiled code; performing character replacement on the compiled code according to an obfuscation dictionary to generate an obfuscation code; obtaining a pre-generated secret key, and encrypting the obfuscated code by the secret key through an encryption rule to obtain an encrypted code; customizing a class loader in a loading container according to the type of the encrypted code, wherein the class loader comprises a decryption rule of the encrypted code; and generating a jar package by using the decryption rule and the encrypted code to complete encryption of the java source program code. The method has the beneficial effect that the security of the code is improved. In addition, the invention also relates to a block chain technology, and the decryption rule can be stored in the block chain node.

Description

technical field [0001] The embodiment of the present invention relates to the technical field of communication encryption, in particular to a java code packing method and system. [0002] technical background [0003] At present, with the rapid development of Internet technology today, the issue of intellectual property protection has become increasingly prominent. Software companies often have a strong control over internal source code security, and regulate employees' source code security awareness through means such as systems, monitoring, and auditing. However, for banking localization deployment projects and secondary development projects for outsourcing companies, how to prevent users from obtaining source code through decompilation and then infringing on intellectual property rights has become an increasingly serious issue. Not only that, source code leakage will also increase the cost of enterprise research and development, reduce market competitiveness, and limit th...

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
IPC IPC(8): G06F21/14
CPCG06F21/14
Inventor 杨哲
Owner PING AN TECH (SHENZHEN) 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