• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Protect classes from de-compile

 
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I distribute a jar file that contains all my classes.
Is there a way to protect the classes in the jar to be de-compiled?
Can I sign or seal the jar file so that it cannot be read by a decompiler?
Thanks.
[ February 04, 2005: Message edited by: Bruce Jin ]
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no.
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a number of "bytecode obfuscators" available, both commercial (DashO Pro) and free (RetroGuard). Googling for "Java bytecode obfuscators" will give you a whole list of options.

Note, though, that none of these prevent decompilation; they just arrange things so that the decompiled code is hard to read or understand. Some obfuscators are able to prevent some decompilers from decompiling some statements, just by making them impossible for the decompiler to understand. But it's an "arms race" -- decompilers and obfuscators both keep getting better by turns.
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot.
I will try proGuard and see how it works
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!