Java代码反编译与混淆:原理、实践与保护策略
1. Java代码反编译
1.1 反编译测试示例
我们以 MessageInfoComplex 类为例,来测试反编译器的效果。 MessageInfoComplex 类是 MessageInfo 类的增强版本,用于在聊天应用中向远程主机发送消息文本和属性。以下是 MessageInfoComplex.java 的源代码:
package covertjava.decompile;
/**
* MessageInfo is used to send additional information with each message across
* the network. Currently it contains the name of the host that the message
* originated from and the name of the user who sent it.
*/
public class MessageInfoComplex implements java.io.Serializable {
String hostName;
String userName;
public MessageInfoComplex(String hostName, String userName) {
this.hostName = hostName;
this.userName
超级会员免费看
订阅专栏 解锁全文

被折叠的 条评论
为什么被折叠?



