BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to obfuscate a jar

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
k.mann
Guest





PostPosted: Tue Apr 20, 2004 5:59 am    Post subject: how to obfuscate a jar Reply with quote



Hi,
How can a .jar project can be obfuscated?
Regards,


Back to top
Valentino Kyriakides
Guest





PostPosted: Tue Apr 20, 2004 6:08 pm    Post subject: Re: how to obfuscate a jar Reply with 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...
Quote:
Hi,
How can a .jar project can be obfuscated?
Regards,





Back to top
Ken Warner
Guest





PostPosted: Tue Apr 20, 2004 6:09 pm    Post subject: Re: how to obfuscate a jar Reply with quote



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





PostPosted: Fri Apr 23, 2004 10:17 am    Post subject: Re: how to obfuscate a jar Reply with 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
Ken Warner
Guest





PostPosted: Fri Apr 23, 2004 5:23 pm    Post subject: Re: how to obfuscate a jar Reply with quote

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





PostPosted: Sat Apr 24, 2004 7:40 am    Post subject: Re: how to obfuscate a jar Reply with 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 ?


"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





PostPosted: Sat Apr 24, 2004 2:19 pm    Post subject: Re: how to obfuscate a jar Reply with quote

"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





PostPosted: Thu Apr 29, 2004 7:21 pm    Post subject: Re: how to obfuscate a jar Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.