• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Protection of .class file from decompilation.

 
Serghei Jelauc
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi javers.
I need to protect my .class file from decompilation. Could you say me how I can do it?
Thanks in advance.
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using Google to search for "java obfuscation".
You should be able to find something to help you.
 
Dermot Curley
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another option is to encrypt the class file and then decrypt it "on the fly" by modifying classLoader. This tutorial got me up to speed on classloader pretty quick. (You will have to register for the pleasure).
It is worth saying that this will not work the same for an applet, security restrictions will prevent you from messing with classLoader, but it should work fine for an application.
[ February 24, 2003: Message edited by: Dermot Curley ]
[ February 24, 2003: Message edited by: Dermot Curley ]
 
Campbell Ritchie
Sheriff
Pie
Posts: 50278
80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raj Bansilal Champaneriya,
Your post was moved to a new topic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic