Java program protection method, apparatus, device, and readable storage medium
A technology for program protection and storage media, which is applied in program/content distribution protection, electronic digital data processing, instruments, etc., and can solve problems such as inability to load Class files, compatibility issues, and destruction of Java program compatibility.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] Please refer to figure 1 , figure 1 It is a flow chart of a Java program protection method in an embodiment of the present invention, and the method includes the following steps:
[0050] S101. Analyze the Class file to be encrypted, and determine the instruction part in the Code attribute.
[0051] In the design and development stage, or before publishing the application including the Class file, after compiling the Java program, that is, when the Class file is obtained, the Class file can be analyzed. That is to say, the Class file to be encrypted is a Java program to be protected, which is obtained after compiling. When parsing the Class file, it can refer to the standard of the Class file format, and the parsing process will not be repeated here. When parsing the Class file, the main purpose is to determine the instruction part in the Code attribute in the Class file. The instruction part represents the code logic of the Java source program, that is, the method ...
Embodiment 2
[0079] Corresponding to the above method embodiments, the embodiment of the present invention also provides a Java program protection device, and the Java program protection device described below and the Java program protection method described above can be referred to in correspondence.
[0080] see figure 2 As shown, the device includes the following modules:
[0081] File parsing module 101, is used for parsing the Class file to be encrypted, and determines the instruction part in the Code attribute;
[0082] The instruction encryption module 102 is used to encrypt the instruction part of the Class file to obtain the target Class file;
[0083] The meta file recording module 103 is used to create a meta file, and writes the corresponding position information of the instruction part in the target Class file to the meta file;
[0084] Correspondence establishment module 104, for establishing the correspondence of target Class file and meta file;
[0085] The loading decryp...
Embodiment 3
[0094] Corresponding to the above method embodiment, the embodiment of the present invention also provides a Java program protection device. The Java program protection device described below and the Java program protection method described above can be referred to in correspondence.
[0095] see image 3 As shown, the Java program protection device includes:
[0096] memory D1 for storing computer programs;
[0097] The processor D2 is configured to implement the steps of the Java program protection method in the above method embodiment when executing the computer program.
[0098] Specifically, please refer to Figure 4 , is a specific structural diagram of a Java program protection device provided in this embodiment. The Java program protection device may have relatively large differences due to different configurations or performances, and may include one or more than one processor (central processing units, CPU ) 322 (eg, one or more processors) and memory 332, one or ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



