Win a copy of Spring Boot in Practice this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Protect classes from de-compile

 
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no.
 
author and iconoclast
Posts: 24204
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks alot.
I will try proGuard and see how it works
reply
    Bookmark Topic Watch Topic
  • New Topic