GeeCON Prague 2014*
The moose likes Java in General and the fly likes Code Obfustication in java... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Code Obfustication in java..." Watch "Code Obfustication in java..." New topic
Author

Code Obfustication in java...

Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

Can anyone suggest me the best way to obfusticate my code in java, swing for client and webservices for server code. Is there any open source tools avilable for this purpose?

Ananth
Developer, Sysvine Technologies


Ananth Chellathurai [Walk on software]
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18874
    
  40

There are quite a few Java obfuscators out there. Many of which are indeed in the open source. A quick google, should give you pages of them.

Don't use them, so don't know which is best. I'll let other make those suggestions.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Jan van Mansum
Ranch Hand

Joined: Oct 19, 2007
Posts: 74
yGuard is a good one.


SCJP 1.4, SCWCD 1.4
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42031
    
  64
ProGuard (on SourceForge) is a good open source one.


Ping & DNS - my free Android networking tools app
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

Thanks for All your responses. I am picking proguard.

Ananth
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

Can you help me how to use proguard in my build.xml?
[ November 26, 2007: Message edited by: Ananth Chellathurai ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42031
    
  64
What does the target look like you're using to invoke it? What problems are you encountering?
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

I am not facing any problems still, I am making a jar with my build script is it possible to use proguard through my build script? If yes what should be done?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42031
    
  64
Proguard includes an ant task that can be used for this purpose. Its manual has a full page of examples and documentation about it.
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

I will get through it, Thanks Ulf
 
GeeCON Prague 2014
 
subject: Code Obfustication in java...