• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

prevent decompling .class

 
Ranch Hand
Posts: 493
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

i need to prevent anyone to decompile my .class , is there a way to do this ?
 
Sheriff
Posts: 22802
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Search for obfuscation / obfuscators.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bottom line: no. There are ways to make it harder, but in the end, a determined attacker will prevail.

What kind of application is this? Why is it important not to be decompiled? What are you trying to guard against? Maybe there are other ways of addressing that.
 
S Shehab
Ranch Hand
Posts: 493
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:Bottom line: no. There are ways to make it harder, but in the end, a determined attacker will prevail.

What kind of application is this? Why is it important not to be decompiled? What are you trying to guard against? Maybe there are other ways of addressing that.



Hi Ulf ,
Actually it's a reporting tool i developed for a company with 2 versions desktop and web , and we agreed that any further updates must be made by me only , so i wanna prevent anyone to see my code ,so he can do updates , what is the "obfuscation / obfuscators" ? so is there a way to achieve this ?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you really think end users will decompile an application so they can make changes to it and then continue to use it? That sounds a bit far-fetched. There aren't many meaningful changes that could be made without needing to make server changes as well (I'm assuming that the tool uses a DB for its data).

Some strategies for making decompilation harder are described in http://faq.javaranch.com/java/AppletsFaq#decompilation (it's about applets, but the same principles hold for desktop apps).
 
The only thing that kept the leeches off of me was this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic