Method for generating instruction codes in Java software watermark virtualizing method

An instruction code and software watermarking technology, applied in the field of instruction code generation and Java software watermarking, can solve problems such as lack of versatility, practical application limitations of algorithms, and inconvenience.

Active Publication Date: 2014-12-10
NANTONG UNIVERSITY
View PDF2 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Generally, according to the embedded watermark information, it needs to be written manually by profe...

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 for generating instruction codes in Java software watermark virtualizing method
  • Method for generating instruction codes in Java software watermark virtualizing method
  • Method for generating instruction codes in Java software watermark virtualizing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The solution of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0034] For the generation method of the instruction code in the Java software watermark virtual method provided by this embodiment, see figure 1 ,as follows:

[0035] Step 1: Load the Java class file of the instruction to be embedded through the BCEL class library. Suppose the file name of the Java class file is TestClass.class, the path is "D:\\test file\\TestClass.class", and the character string storing the absolute path of the class file is targetClassfile, then the implementation of the Java class file is loaded The code is:

[0036] StringtargetClassfile="D:\\test file\\TestClass.class";

[0037] Call the class file parser ClassParser of the BCEL class library to parse the loaded Java class file in order to obtain its class file name, constant pool, method and other information. The relevant implementation code is:

[0038] JavaClassjc = ne...

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 method for generating instruction codes in a java software watermark virtualizing method. On the basis of a BCEL ((byte code engineering library) class library, the method comprises the following steps of (1) loading a Java class file which is required to be embedded with instructions through the BCEL class library, analyzing the class file and transforming the class file into a Java class file object which meets BCEL processing requirements; (2) acquiring parameter information, which comprises a classifying method, of the class file from the Java class file object, and finding out and taking a virtualizing method from the acquired method; (3) creating a new virtualizing method according to the acquired virtualizing method and the parameter information and replacing the original virtualizing method by using the new virtualizing method; (4) generating instruction codes which are used for embedding watermark information and adding the instruction codes in an instruction set of the new virtualizing method; and (5) analyzing the Java class file by using the new virtualizing method. The method has the advantages that by the method, the instruction codes for embedding the watermark information are automatically generated in the virtualizing method through a computer program, and the problems that in the prior art, professionals require to manually write the instruction codes, and the manual instruction code writing mode is low in universality and does not facilitate actual application.

Description

technical field [0001] The invention relates to a software watermark, in particular to a method for generating instruction codes in a Java software watermark virtual method. Background technique [0002] The software industry has developed rapidly in recent years and has become a major industry with an annual output value of hundreds of billions. At the same time, the problem of illegal duplication and misappropriation of software products has also become very serious and has attracted widespread attention from both inside and outside the industry. Software watermarking is a technology that has emerged in recent years to protect the intellectual property rights of software products. It embeds copyright protection information or identity authentication information (ie watermark) in software works without affecting software functions. When the program is illegally copied or In case of misappropriation, this information can be extracted to prove the ownership of the software w...

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/16
CPCG06F21/16G06F21/10
Inventor 陈建平李奎施佺马海英朱浩王进文万志
Owner NANTONG UNIVERSITY
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