Java code encryption method and device

A technology of code encryption and encryption method, which is applied in the field of Java code encryption methods and devices, can solve problems such as difficult to read codes, complex code cracking, difficult code logic, etc., and achieve the effect of ensuring security

Active Publication Date: 2019-10-08
南京冰鉴信息科技有限公司
View PDF15 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] Code obfuscation is the conversion of code into an unreadable format, making cracking the code more complicated
Typical code obfuscation includes removing debugging information in all codes, renaming functions and variable tables, making it difficult for third parties to obtain code logic from variable function names

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 encryption method and device
  • Java code encryption method and device
  • Java code encryption method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0024] figure 1 Shows a flowchart of a Java code encryption method provided by an embodiment of the present invention, see figure 1 , a kind of Java code encryption method that the embodiment of the present invention provides, comprises:

[0025] S1, register the local method in the JVM;

[0026] Specifically, the present invention needs to register a local method on the JVM (Java Virtual Machine, Java virtual machine) platform i...

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 provides a Java code encryption method and device. The method comprises the steps of registering a local method in a JVM; generating a header file for the N C programs by adopting a javah command, each header file being used for declaring a C function; compiling each C program into a dynamic link library file, and generating M dynamic link libraries; acquiring a dynamic link libraryencryption mode, and encrypting each dynamic link library by utilizing the dynamic link library encryption mode to obtain M encrypted dynamic link libraries; calling the C program matched with the C function to be called in the M dynamic link libraries, encrypting the Java class file to obtain the encrypted java file, wherein the encrypted Java file comprises the specified encrypted dynamic link library information of a specified encrypted dynamic link library, the specified encrypted dynamic link library is obtained after the encryption of the specified dynamic link library, and the specifieddynamic link library is a dynamic link library where the C program matched with the C function to be called is located.

Description

technical field [0001] The invention relates to the technical field of code encryption, in particular to a Java code encryption method and device. Background technique [0002] Java has various excellent features such as simplicity and cross-platform, and has been widely used in various fields of software development. The cross-platform flexibility of Java comes from the unique compilation method. After the Java source code is compiled, the generated Java class files are not processor-oriented binary files but virtual machine-oriented Java class files. A class file is an intermediate code with a format. Most of the information in the source code is preserved. So it can be easily decompiled to get a code that is almost the same as the source code. Therefore, in order to protect the security of the Java code, some encryption measures are required for the Java code. [0003] Existing Java security measures mainly protect from two aspects, class loader encryption and code ob...

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/14G06F21/60
CPCG06F21/14G06F21/602G06F2221/2107Y02D30/50
Inventor 顾凌云王伟冷健毛靖文马翔蒋安维
Owner 南京冰鉴信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products