| View previous topic :: View next topic |
| Author |
Message |
k.mann Guest
|
Posted: Tue Apr 20, 2004 5:59 am Post subject: how to obfuscate a jar |
|
|
Hi,
How can a .jar project can be obfuscated?
Regards,
|
|
| Back to top |
|
 |
Valentino Kyriakides Guest
|
Posted: Tue Apr 20, 2004 6:08 pm Post subject: Re: how to obfuscate a jar |
|
|
With an appropriate obfuscator...for example Zelix KlassMaster, RetroGuard,
and so on...
"k.mann" <k (AT) digigame (DOT) com> schrieb im Newsbeitrag
news:4084bc32 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi,
How can a .jar project can be obfuscated?
Regards,
|
|
|
| Back to top |
|
 |
Ken Warner Guest
|
Posted: Tue Apr 20, 2004 6:09 pm Post subject: Re: how to obfuscate a jar |
|
|
I've always used Zelix KlassMaster (ZKM). Just
make the jar; put it somewhere that ZKM can see it;
tell ZKM how and what to obfuscate and optimize and
ZKM will generally produce an even smaller, well
obfuscated jar.
ZKM has a lot of parameters to tweek to get your jar
obfuscated just the way you want it.
Valentino Kyriakides wrote:
| Quote: | With an appropriate obfuscator...for example Zelix KlassMaster, RetroGuard,
and so on...
"k.mann" <k (AT) digigame (DOT) com> schrieb im Newsbeitrag
news:4084bc32 (AT) newsgroups (DOT) borland.com...
Hi,
How can a .jar project can be obfuscated?
Regards,
|
|
|
| Back to top |
|
 |
k.mann Guest
|
Posted: Fri Apr 23, 2004 10:17 am Post subject: Re: how to obfuscate a jar |
|
|
Hi,
In JBuilder I see that RetroGuard is included. I've put a check to obfuscate
compile option
and then compiled my .jar project. But It seems that the .jar file is not
obfuscated.
What am i doing wrong?
|
|
| Back to top |
|
 |
Ken Warner Guest
|
Posted: Fri Apr 23, 2004 5:23 pm Post subject: Re: how to obfuscate a jar |
|
|
Are you thinking that the jar file is obfuscated?
It's the class files in the jar that are
obfuscated...
k.mann wrote:
| Quote: | Hi,
In JBuilder I see that RetroGuard is included. I've put a check to obfuscate
compile option
and then compiled my .jar project. But It seems that the .jar file is not
obfuscated.
What am i doing wrong?
|
|
|
| Back to top |
|
 |
k.mann Guest
|
Posted: Sat Apr 24, 2004 7:40 am Post subject: Re: how to obfuscate a jar |
|
|
Hi,
I'm checking the class files inside the .jar file with a decompiler and
expecting that class names and functions names etc are obfuscated but
it seems not obfuscated. There is an obfuscate option in jbuilder compile
options so i am expecting the .Jar file (class file(s) in your view) is
obfuscated when it's build. Have you tried to obfuscate with the Jbuilder ?
"Ken Warner" <kwarner (AT) cts (DOT) com> wrote
| Quote: | Are you thinking that the jar file is obfuscated?
It's the class files in the jar that are
obfuscated...
k.mann wrote:
Hi,
In JBuilder I see that RetroGuard is included. I've put a check to
obfuscate
compile option
and then compiled my .jar project. But It seems that the .jar file is
not
obfuscated.
What am i doing wrong?
|
|
|
| Back to top |
|
 |
Valentino Kyriakides Guest
|
Posted: Sat Apr 24, 2004 2:19 pm Post subject: Re: how to obfuscate a jar |
|
|
"k.mann" <k (AT) digigame (DOT) com> schrieb im Newsbeitrag
news:408a1934 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi,
I'm checking the class files inside the .jar file with a decompiler and
expecting that class names and functions names etc are obfuscated but
it seems not obfuscated. There is an obfuscate option in jbuilder compile
options so i am expecting the .Jar file (class file(s) in your view) is
obfuscated when it's build. Have you tried to obfuscate with the Jbuilder
?
|
I believe you are mixing up some things here...
1. JB's obfuscate compiler option is very restrited and just obfuscates
private symbols inside of classes and nothing more.
2. Don't mix up the JBX "Configure Obfuscator" settings with general Java
app obfuscating tasks. These settings here for Retroguard/Proguard are *only
meant for MIDlet (i-mode apps) programmings*.
3. If you want to try out Retroguard for your usual non-MIDlet based Java
projects you can try out the JB supplied Build OpenTool example. You can
find this under: "JBuilderXsamplesOpenToolsBuildobfuscator". -
Additionally there is some other maybe better suited here (?) OpenTool on
Borlands CodeCentral Server which makes available and uses
Retroguard/ProGuard for JB projects.
4. For any serious commercial programmings I highly recommend the
ZelixKlassMaster 2nd generation obfuscator, which you can use together with
our JB ZKMWizard OpenTool. See: http://www.kyrsoft.com or Borland's
CodeCentral JBuilder OpenTools section.
|
|
| Back to top |
|
 |
Paul Britton Guest
|
Posted: Thu Apr 29, 2004 7:21 pm Post subject: Re: how to obfuscate a jar |
|
|
I found this process really confusing as well. I worked out a simple method
of using retroguard which might be helpful. It's simple but it works.
1. Make your .jar file in the usual way inside jbuilder.
2. Write a batch file, or script to run Retroguard to convert the .jar to an
obfuscated .jar. The script is a two-liner along the lines of:
set CLASSPATH=C:JBuilder9thirdpartyretroguard-v1.1retroguard.jar
java RetroGuard <unobfuscated-jar-file-name>.jar <jar-file-name>.jar
script.rgs
the file script.rgs can contain one line:
..class * protected
.... but you can insert other lines to override the default behavour. See
this page for details:
http://www.retrologic.com/retroguard-docs.html
|
|
| Back to top |
|
 |
|