• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to prevent Decompiling  RSS feed

 
Murad Iqbal
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I now understand that there are many Java decompilers that simply reverse your classes to the source code. What prevention do we as programmers have to keep this evil away as this is a big threat to copyright. How can I write my code in a way that it cannot be decompiled, is this possible?

Murad.
 
Chandra Sekhar
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

You can run some obfuscator tools to prevent reverse engineering.

This may help you

http://proguard.sourceforge.net/
 
Jeremy Botha
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Obfuscation is pointless; all it really does is obscure variable names, and most IP is bound up into design and algorithms.

Personally I believe that security through obscurity is a waste of time. You're far better off enforcing your IP rights via contracts with your customers than by trying to prevent them from doing anything to your application code.

Think of it; no matter what you do to a program, at some point it needs to be interpretable by the machine. So if the person can't crack your obfuscation, all they need to do is crack the deobfuscator and get it to output its results during execution.

and, failing that, reverse engineering most applications is not difficult.

J
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!