Method and device for protecting class files

A technology for protecting devices and files, applied in digital data protection, computer security devices, instruments, etc., to achieve the effect of easy to use, maintain cross-platform characteristics, and prevent decompilation

Inactive Publication Date: 2011-01-26
ZTE CORP
View PDF2 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The object of the present invention is to provide a method and device for protecting class files, which are used to solve the problems of preventing class files from being decompiled, maintaining cross-platform characteristics and user convenience

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 and device for protecting class files
  • Method and device for protecting class files
  • Method and device for protecting class files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described below are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

[0023] figure 1 Shows the method flow of the protection file provided by the present invention, such as figure 1 Shown:

[0024] Step S101, the encryption unit reads the bytecode of the class file to be encrypted, and uses the public key in the key pair to encrypt the bytecode of the class file to obtain the encrypted bytecode file.

[0025] Prior to this, it is necessary to judge the file type of the imported class file. If the file type is not supported, the encryption operation will be terminated. If the file type is supported, the key generation unit will obtain the key pair through the built-in algorithm. The key A pair includes a public key for en...

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 method and device for protecting class files. The method comprises the following steps: an encryption unit reads the byte codes of a class file to be encrypted, a key pair is used to encrypt the byte codes of the class file to obtain an encrypted byte code file; a compilation unit fills the verification code and key pair used for verifying the user in a local application program, a file protection device is obtained by compiling the source codes of the local application program; and the file protection device uses the key pair to decrypt the encrypted byte code file. In the method of the invention, the file encryption unit is adopted to encrypt the byte codes of the class file and the file protection device generated in the encryption process is used to decrypt the byte codes, thus the class file is effectively prevented from decompiling, the cross-platform characteristic of the program can be maintained and the operation of the user can be more convenient.

Description

technical field [0001] The invention relates to the security protection technology of class files, in particular to a method and device for protecting class files. Background technique [0002] The Java language can be cross-platform because the Java source code is translated into a class file by the compiler, and the class file is stored as an intermediate code in a platform-independent format. The class file has a disadvantage, that is, you can use the disassembler javap in the JDK to disassemble the class file, and then use the decompilation tool to decompile the disassembly result to obtain the source code of the class. This is very detrimental to programmers who need to prevent Java source code from being plagiarized or attacked. [0003] Existing methods for class file protection mainly include the following: bytecode obfuscation technology, local compilation technology, bytecode watermarking technology and JVM class loader encryption technology. [0004] Bytecode 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/22G06F21/62
Inventor 郭宏泰
Owner ZTE CORP
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