This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Java in General and the fly likes secure my code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "secure my code" Watch "secure my code" New topic
Author

secure my code

khaled hanafy
Greenhorn

Joined: Jun 28, 2010
Posts: 25

Hi Guys,

I wanna program that encode my class files to secure my code .

Any help will be appreciated.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
In case you're talking of making it impossible to prevent decompilation, then this is ultimately futile - a determined will be able to recover the source code. If that's not what you meant, please be more specific.
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 597

Tim Moores wrote:In case you're talking of making it impossible to prevent decompilation, then this is ultimately futile - a determined will be able to recover the source code. If that's not what you meant, please be more specific.


Yes but you can always keep the amatures out which is good enough for most cases. You could search for java code obfuscation

Of course look at the pro and cons, as Tim said obfuscation won't
"make it impossible to prevent decompilation"
just very difficult.


Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
Brian Burress
Ranch Hand

Joined: Jun 30, 2003
Posts: 122
Just put comments in it. That will confuse most developers that I know ;)
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
Or find the MindProd site, which makes most entertaining reading. You will find a link to obfuscators in the naming section.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: secure my code
 
Similar Threads
What is wrong with my javascript!
locking binary against decompiler
WA #1.....word association
Authentication Problem
sitemesh exclude problem