Descrambling running method, scrambling forming method and device of java class object
A java class and java virtual machine technology, applied in the computer field, can solve the problems of unrecognizable key field values, inability to prevent decompilation, low efficiency, etc., and achieve the effect of convenient log location
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0064] figure 1 It is a flow chart of the descrambling and running method for Java objects provided by Embodiment 1 of the present invention. The method in this embodiment is applicable to the case of protecting the class files (ie, Java bytecodes) compiled from Java source codes through the Java development kit. The method is executed by the descrambling running device of the Java class object configured in the computer, and the device is usually implemented in the form of hardware and / or software. The method of the present embodiment comprises the steps:
[0065] Step 110, loading an agent instance (InstrumentAgent) through the Java virtual machine;
[0066] In step 110, after the Java virtual machine is activated, the proxy instance will be loaded first, and then a class loader will be generated. Load the proxy instance to read the content of the original Java class object, and return it to the Java virtual machine in the form of byte array.
[0067] Step 120, initializ...
Embodiment 2
[0076] figure 2 It is a flow chart of the descrambling operation method of the Java class object provided by the second embodiment of the present invention. The embodiment of the present invention is based on the above-mentioned embodiment and further optimized. Refer to figure 2 , in this embodiment, the operation of loading the agent instance through the Java virtual machine specifically includes the following steps:
[0077] Step 210, read the proxy class object containing the function of the proxy instance through the Java virtual machine;
[0078] In step 210, the function of the proxy instance is used to read the content of the original Java class object when the Java virtual machine starts, and the Java class object includes a function. In this embodiment, the Java class object includes a A function named premain will be described, but the present invention is not limited thereto. This function is used to read the contents of a Java class object. And pack the proxy...
Embodiment 3
[0082] image 3 It is a flow chart of the Java class object scrambling formation method provided by Embodiment 3 of the present invention. The method in this embodiment is applicable to the case of protecting the class files (ie, Java bytecodes) compiled from Java source codes through the Java development kit. The method is executed by a scrambling forming device configured in a computer as a Java class object, and the device is usually implemented in the form of hardware and / or software. The method of the present embodiment comprises the steps:
[0083] Step 310, obtaining each byte in the Java class object in bytecode format;
[0084] In step 310, the contents of all Java class objects in the jar file are read out in the form of byte arrays to obtain each byte in the Java class objects in bytecode format,
[0085] Step 320, scrambling each byte of the Java class object in units of bytes;
[0086] In step 320, each byte of the Java class object is scrambled, preferably in...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 