im using proguard and hiding my code.. and id seem to work... 'half'. i just want it not decoded, and to be worked, and privates to be not seen by jad..
here's my java code
package kr.pkgcls;
public class sums {
private int margin;
private int resVal;
public sums(){
margin = 10;
resVal = 0;
}
public sums(int a){
margin = a;
resVal = 0;
}
private void eval_internal(){
margin++;
for(int i = 0; i<margin; i++){
resVal += i;
}
}
public int eval(){
//error!! when use "return eval_internal()", it exposes..
eval_internal();
return resVal;
}
}
and here's my .pro data
#input file
-injars sumslib.jar
#output file
-outjars sumslib2.jar
#lib
-libraryjars <java.home>/lib/rt.jar
#basic ignores
-dontoptimize
-dontshrink
-dontusemixedcaseclassnames
-target 1.6
-verbose
-keep public class kr.pkgcls.**{
public protected *;
}
#-dontskipnonpubliclibraryclasses
#below makes error
#-keepparameternames
#-keepclasseswithmembernames public class *{
# public void sums();
# public void sums(int);
# public int eval();
#}
#-keepclasseswithmembernames class kr.pkgcls.**{
# public **(***);
#}
#keepclasseswithmembernames public class *{
#}
#external file name input
-obfuscationdictionary dic.txt
-classobfuscationdictionary dic.txt
-packageobfuscationdictionary dic.txt
and here's my jad output.
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) radix(10) lradix(10)
package kr.pkgcls;
public class sums
{
public sums()
{
i = 10;
l = 0;
}
public sums(int j)
{
i = j;
l = 0;
}
private void i()
{
i++;
for(int j = 0; j < i; j++)
l += j;
}
public int eval()
{
i();
return l;
}
private int i;
private int l;
}
seem to work, as privates are modified to another method names, while others are not, but IT IS DECODED!!! is there somethin wrong with my .pro options? or.. is it because this code is so simple?
help me out guys ;-<