发明名称 PROTECTING METHOD AND SYSTEM OF JAVA SOURCE CODE
摘要 The present disclosure discloses a protecting method and system of Java source code. When a first initiating class is invoked, the method comprises following steps, wherein the first initiating class is an initiating class of Java program: the first initiating class decrypts first cipher data to obtain a class loader; the class loader reads second cipher data to the memory and decrypts the second cipher data to obtain a first class, wherein the first class is a class run by a Java virtual machine, and the suffix of the first class is .class; the class loader loads a second initiating class to the memory; wherein the second initiating class is an original class in jar packet of the Java program; and the class loader loads the first class to the Java virtual machine so that the Java virtual machine can invoke a main interface in the second initiating class to run the Java program. The present disclosure can protect Java source code and make it difficult to decompile the Java source code.
申请公布号 US2014195824(A1) 申请公布日期 2014.07.10
申请号 US201214117987 申请日期 2012.08.27
申请人 Feitian Technologies Co., Ltd. 发明人 Lu Zhou;Zu Huazhang
分类号 G06F21/10 主分类号 G06F21/10
代理机构 代理人
主权项 1. A protecting method of Java source code, wherein when a first initiating class is invoked, the method comprises: S1, the first initiating class reading first cipher data to a memory, decrypting the first cipher data to obtain first plain data, and defining the first plain data as a class loader, wherein the first initiating class is an initiating class of Java program and the first cipher data is data obtained by encrypting the bytecode file of the class loader; S2, the class loader reading second cipher data to the memory, decrypting the second cipher data to obtain second plain data, and defining the second plain data as a first class, wherein the first class is a class which is run by a Java virtual machine, and the suffix of the first class is .class, and the second cipher data is obtained by encrypting the bytecode file of the first class; S3, the class loader loading a second initiating class to the memory, wherein the second initiating class is an original class in jar packet of Java program; and S4, the class loader loading the first class to the Java virtual machine so that the Java virtual machine can invoke a main interface in the second initiating class and run the Java program.
地址 Haidan District , Beijing CN