jQuery in Action, 2nd edition*
The moose likes Java in General and the fly likes How to make a class file which cannot decompiled? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to make a class file which cannot decompiled?" Watch "How to make a class file which cannot decompiled?" New topic
Author

How to make a class file which cannot decompiled?

Vishnu Murthy
Ranch Hand

Joined: Jan 04, 2001
Posts: 56
Hi all,
I want my .class file not to be decompiled by any other tools. Can we achieve this? if yes Pl. explain as how to do it. It is very urgent pl.
Thanks
Vishnu
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Try this.
- Peter
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1121

Hi Vishnu,

I want my .class file not to be decompiled by any other tools. Can we achieve this?

Although Peter has offered you a list of obfuscators (I believe -- I didn't actually follow the link he gave), it may not be possible to create a truly non-decompilable ".class" file. Read this for more details:
http://www.javaworld.com/javaworld/javaqa/2003-05/01-qa-0509-jcrypt.html
Hope this helps.
Good Luck,
Avi.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to make a class file which cannot decompiled?
 
Similar Threads
How to create exe file
Security of Java Jar file
decompilation of .class file into .java
Securing My Application
encryption and decryption