• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Protection of .class file from decompilation.

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try using Google to search for "java obfuscation".
You should be able to find something to help you.
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Marshal
Posts: 77291
371
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Raj Bansilal Champaneriya,
Your post was moved to a new topic.
 
reply
    Bookmark Topic Watch Topic
  • New Topic