【发布时间】:2015-01-10 05:31:37
【问题描述】:
我有两个 java 移动代理程序。这些程序是简单且经过混淆的 java 移动代理。
**Program 1**
package myfirst;
import com.ibm.aglet.*;
public class MyAglet extends Aglet
{
public void run()
{
int a=1;
System.out.println("Hello this is the first important part of the program \n");
System.out.println("Hello this is the second important part of the program \n");
}
}
方案 2
package myfirst;
import com.ibm.aglet.*;
public class MyAglet1 extends Aglet
{
public void run()
{
int a=1;
System.out.println("Hello this is the first important part of the program \n");
if(a>0)
System.out.println("Hello this is the second important part of the program \n");
else
{abc();
System.out.println("Hello this is the second important part of the program \n");
}
}
public static void abc()
{
int x=12,y=123,z=32;
x=y;
y=z;
z=x;
System.out.println("The part to be printed is "+x+y+z);
}
}
现在有哪些因素可以用来评估混淆代码比普通代码更好。
【问题讨论】:
-
这就是问题所在......我们如何比较这两个代码。
-
你想证明一个更好。问题是:在哪些方面更好?您希望您的代码快速、易于维护、难以阅读、紧凑,还是什么?其中许多标准是相互排斥的。没有通用的“更好”
-
我想证明,与简单的 java 代码相比,对混淆代码进行逆向工程是很困难的。怎么可能。
-
不可能用更少的行数来解释。这就是为什么这样做
标签: java obfuscation agent javaagents