The compiled Java class files are easily decompiled and there still are some limitations in the traditional protec-tion ways for Java class files. The paper presents a Java class files protection method based on cryptography. In this paper, the Zip compressing algorithm is revised on the basis of Java virtual machine (JVM) and Java source code is encrypted by introducing cryptography, which can effectively protect Java source code from being decompiled and eliminate the disadvantages in traditional protection ways for Java class files. Enterprises and individuals can use this method to protect their Java source code effectively.%针对编译后Java类文件能被轻而易举的反编译以及目前Java类文件保护技术存在局限性的问题,讨论了一种新的Java美文件保护技术,它是通过引入密码技术,加密源文件代码以及改写虚拟机JVM中Zip压缩算法,来实现一种全新的Java类文件保护,从而有效避免利用其他接口或工具进行破解,解决了传统保护技术中的问题.这样,企业或个人通过该技术方法就可实现对Java源文件代码的有效保护.
展开▼