Preventing Jar file from decompilation

Hi ,

Could you suggest a way to prevent the decompilation os jar file,

regards,
alpjose
alpjoseAsked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
you can obfuscate your code to make it harder but you cannot prevent it
0
 
zzynxConnect With a Mentor Software engineerCommented:
0
 
TimYatesConnect With a Mentor Commented:
Here's a recent article on obfuscation:

http://today.java.net/pub/a/today/2004/10/22/obfuscation.html
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
zzynxSoftware engineerCommented:
0
 
TimYatesCommented:
lol
0
 
objectsCommented:
too slow :D
0
 
zzynxSoftware engineerCommented:
:°D
0
 
alpjoseAuthor Commented:
Thanks for the response, i will go through these sites and check out . But i downloaded a tool called Excelsior JET which converts jar into and .exe so that i becomes decompilation as difficult as c/c++.
Any inputs on this tool will be welcomed.
0
 
zzynxSoftware engineerCommented:
Since it is nominated for the 2005 Java Developer's Journal Readers' Choice Awards, it can't be that bad.
0
 
TimYatesCommented:
>> so that i becomes decompilation as difficult as c/c++.

And only runs on Windows :-(

;-)
0
 
doronbCommented:
>> so that i becomes decompilation as difficult as c/c++.

Oh, right, and of course there are no crackers who can crack the C/C++ wrapper and get to the JAR inside, right? ;)
Why not build your OWN obfuscator? that way, at least it'd be something new on the market that the crackers don't yet know how to break >;)
0
 
alpjoseAuthor Commented:
Is there any way of adding hash to the jar and so provide password for it. I have heard of this.
0
 
TimYatesCommented:
>>  Is there any way of adding hash to the jar and so provide password for it. I have heard of this.

Not that I know of...
0
 
doronbCommented:
>> Is there any way of adding hash to the jar and so provide password for it. I have heard of this.

I don't know where you've heard of this, or what you've heard, but the ZIP support in Java does not include the ability to work with password-protected JAR/ZIP files.
0
 
doronbConnect With a Mentor Commented:
Java actually has a design-flaw of sorts enabling a hacker to "steal" your decrypted class-bytes right before they're converted into classes by the JVM.  You can read about this at this link:

[ http://www.javaworld.com/javaworld/javaqa/2003-05/01-qa-0509-jcrypt.html ]

I still went through the whole process of developing my own obfuscation/protection for JAR files, the results of which can be checked by downloading this file:

[ http://www.codeproject.com/useritems/KeyGuard/KeyGuard.zip ]

The file is a self-executable JAR file and it contains some bootstraping code that decryptes and assembles the actual classes and executes the main-class.  An added bonus is that my protection method actually decreases the size of the JAR by about 9% even after ZIP compression!
0
 
TimYatesCommented:
Split between all 4 of us I reckon...  We covered all the bases with this question (afaics)

Tim
0
 
doronbCommented:
Indeed we did, Tim.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.