Unlock instant, AI-driven research and patent intelligence for your innovation.

Java class encryption method, Java class decryption method and computer readable storage medium

An encryption method and storage medium technology, which is applied in the field of computer program source code encryption and decryption, and can solve problems such as Java applications cannot be started normally, cannot be scanned, etc.

Active Publication Date: 2020-12-22
NETWORKBENCH SYST
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The encryption and decryption process implemented by this scheme is relatively safe, but this scheme causes many popular Java frameworks (such as Spring Framework, Hibernate, Apache Tomcat) to be unable to scan these encrypted Classes during the startup phase, resulting in the failure of Java applications to start normally

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 class encryption method, Java class decryption method and computer readable storage medium
  • Java class encryption method, Java class decryption method and computer readable storage medium
  • Java class encryption method, Java class decryption method and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0030] In the following description, the use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating the description of the present application and has no specific meaning by itself. Therefore, 'module', 'part' or 'unit' may be used in combination.

[0031] In this article, bytecode is a virtual instruction format executed by the Java virtual machine, and the bytecode file is compiled from the Java source code.

[0032] JVMTI is a Native programming (C / C++) interface provided by the Java virtual machine, which can detect the internal state of the JVM and control the execution of the JVM application program, and can achieve the purpose of enhancement by dynamically modifying the bytecode of the JVM runtime class. The functions that can be realized include but ...

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 a Java class encryption method, a Java class decryption method and a computer readable storage medium, and the Java class encryption method comprises the steps: encrypting a first bytecode class file through a secret key, obtaining a first bytecode class file ciphertext, generating a second bytecode class file with the same name as the first bytecode class file, writing the first bytecode class file ciphertext into a second bytecode class file, and enabling the second bytecode class file to have the same scanning feature as the first bytecode class file, so as to enable a bytecode tool to scan the second bytecode class file as the first bytecode file. According to the decryption method, in the loading process of a class loader, the loading process is intercepted, the decryption process is started, a first bytecode class file ciphertext is obtained from a second bytecode file, and the first bytecode class file is obtained through decryption by using a secret key. According to the method, the encryption and decryption process that the Java application and the Java framework are completely transparent is achieved.

Description

technical field [0001] This application relates to the field of computer program source code encryption and decryption, in particular to a Java-like encryption and decryption method and a computer-readable storage medium. Background technique [0002] Obfuscated code, also known as obfuscated code, is the behavior of converting the code of a computer program into a functionally equivalent but difficult to read and understand form. Code obfuscation can be used for program source code, or for intermediate code compiled from the program. Programs that perform code obfuscation are called code obfuscators. In related technologies, there are already many code obfuscators with different functions. [0003] Code obfuscation only sets the difficulty of human reading and understanding. It can still be decompiled into human-readable source code through decompilation tools, and many applications use the Spring framework or other Dependency Injection (DI for short) IOC (Inversion of Co...

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/14H04L9/08
CPCG06F21/14H04L9/0825
Inventor 廖雄杰冯立强
Owner NETWORKBENCH SYST