wood burning stoves 2.0*
The moose likes Java in General and the fly likes Code Obfuscators Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Code Obfuscators" Watch "Code Obfuscators" New topic
Author

Code Obfuscators

Aravind Viswanathan
Greenhorn

Joined: Dec 02, 2008
Posts: 6

Hi,

As part of the application development we are planning to introduce code obfuscation for all the class files and java script files as part of our application. We have evaluated yguard (http://www.yworks.com/en/products_yguard_about.html) and Retroguard (http://www.retrologic.com/retroguard-main.html) for this purpose. However, we would also like to evaluate any other similar products before deciding to go for one.

I Googled to see if I can find any any papers comparing the features of obfuscators available, couldn't find any recent one's. Would anyone be able to share there experience of working with any obfuscation tool?

Please note that licensing is not a constraint and my company is ready to obtain a license if we feel that the tool matches our needs.

Thanks
Aravind


Aravind
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
ProGuard works well. Since you mention JavaScript - is this a web app? If so, class files wouldn't be distributed, so needn't be obfuscated.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

Unless the web application is sold to others.

Aravind, keep one thing in mind: code obfuscators only make it harder to decompile and read your code. They do not make it impossible. If someone really wants to reverse engineer your code he/she will be able to do so. But still, if 1% manages to reverse engineer it, that means you managed to prevent 99% to do so.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Unless that 1% posts it on the web.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

But that's something you can't prevent. My point wasn't that code obfuscation is useless or pointless. It was that it's not fool proof. (Well actually, it is fool proof. It's not smarty proof )
Aravind Viswanathan
Greenhorn

Joined: Dec 02, 2008
Posts: 6

Yes, this application would be sold to others. One reason we want the code to be hard to read. I would look into Proguard as well. Thanks for your suggestions.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Code Obfuscators
 
Similar Threads
This Weeks Giveaway
How to Prevent class files from downloading(S.O.S)
prevent decompling .class
Encrypting the web application classes
Obfuscator ranking?