作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (1): 93-94. doi: 10.3969/j.issn.1000-3428.2009.01.031

• 软件技术与数据库 • 上一篇    下一篇

改进的Java类文件保护方法

鲍福良,徐 洁,方志刚   

  1. (浙江大学城市学院信电分院,杭州 310015)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-01-05 发布日期:2009-01-05

Improved Method for Protecting Java Class Files

BAO Fu-liang, XU Jie, FANG Zhi-gang   

  1. (School of Information & Electric, City College, Zhejiang University, Hangzhou 310015)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-01-05 Published:2009-01-05

摘要: 编译后的Java类文件很容易被反编译,在Java应用上会产生源代码的安全问题。该文对传统的Java类文件保护方法进行分析,在类加载器(ClassLoader)加密技术的基础上,提出一种使用JNI技术调用本地解密接口的改进方法。解密接口在设计上保证了JNI技术调用本地解密接口时的通信安全,从而提升了Java类文件的安全性。实验结果表明,该方法是有效的。

关键词: 类加载器, Java本地接口, 类文件, 安全性

Abstract: Because the compiled Java class files are easily decompiled, the security for original code in Java application has been a problem. On the basis of ClassLoader encryption, an improved method for transferring the local decrypted interface with Java Native Interface(JNI) technology is proposed, after analyzing the traditional protecting way for Java class files. The decrypted interface garantees the communication security when JNI technology transfers the local decrypted interface, which promotes the security of Java class files. Experimental results show this method is effective.

Key words: ClassLoader, Java Native Interface(JNI), class file, security

中图分类号: