• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Secure your source code from third party?

 
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have developed a web application for a customer. The customer wants to have the possibility to futher develop on the application in the future. If I don�t want a third party (another IT developer company) to obtain the source code, then how can I give the code to my customer, without the possibility for the customer or a third party to see and make change in the source code?

If I give the customer only the class files, they can decompile the files, right?

What about if I give them a .jar file. Then they can unpack the files, right?

What can I do?
 
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can obfuscate your code to make it harder, but there is nothing you can do AFAIK to stop them.
 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The only way I can see to solve your problem is to sign an aggrement with your customer about how to use the source code. If they want to maintain / do future development by themself , they need the source code.

If you do not even give your customer class files, how are they going to use your application? :-)

One thing to prevent decompile is to use obfuscate tools. Check this out
http://www.retrologic.com/retroguard-faq.html


Lin
 
Jeppe Sommer
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I could host the web application for them...

What about setting a kind of password protection on the jar file?
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you host the web app then they wouldn't be able to get the source. Of course then you have to deal with supporting the web app as well as being worried about the reliability and uptime of the server. Depends on how much of a commitment you want to make to it.

Password protecting the jar won't work because then it won't run, at least as far as I know.
reply
    Bookmark Topic Watch Topic
  • New Topic