基于Java编译器的Maven混淆插件的设计与实现  被引量:3

Design and Implement of Java Compiler Based Maven Obfuscate Plugin

在线阅读下载全文

作  者:傅晓巍 FU Xiao-wei (School of Software Engineering, Tongji University, Shanghai 201804, China)

机构地区:同济大学软件学院,上海201804

出  处:《电脑知识与技术》2018年第4期65-67,70,共4页Computer Knowledge and Technology

摘  要:Java编程语言被大量的工程项目使用,对Java源代码进行保护,防止其被窃取和篡改是非常有必要的。该文以Open-JDK和Oracle JDK的编译器Javac为基础,以编译器插件的形式设计和实现了一个作用于Java源代码的混淆器。该混淆器通过修改由编译器提供的抽象语法树和实现访问者模式达到混淆源代码的目的。该文介绍了名称变换、包修改和数组下标同态计算三种混淆方法。同时,该混淆器被包装成Maven插件,以方便实际项目的使用。The Java programming language is used by many engineering projects and it is necessary to protect the Java source code against theft and tampering. Based on compiler Javac of OpenJDK and Oracle JDK, this paper designs and implements an obfusca- tor that acts on Java source code in the form of compiler plug-in. The obfuscator achieves the purpose of obfuscating the source code by modifying the abstract syntax tree provided by the compiler and implementing the visitor pattern. This article introduces the three obfuscation methods of name conversion, package modification, and array index homomorphic calculation. Meanwhile, the obfuscator is packaged as a Maven plugin to facilitate the use of actual projects.

关 键 词:Java编译器 Maven插件 混淆 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论;自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象