• 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
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

How to create a license for a J2EE application?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

We develop a J2EE application, and we want to create a license, since the application will be hosted in the local server of the client, without Internet access.

Our need is to encrypt the application's source, and use the application in a period of one year, and just after, prohibit access to the application, the lock, if the customer does not renew its license. (Even if for a demo version)

Thank you for your suggestions, you are more experienced.

The other point is that I know that [B]. Classes [/ B] can decipher! but I have no idea if we can encrypt all sources (and even if there is that possibility, there is no way to decrypt it?

i'm sorry if my poste isn't in a good place

Thank you so much
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why are you giving the source away? Would it not be easier to just ship the binaries? Or by "source" are you talking about web technologies (JavaScript/CSS/HTML etc.) If so, there is no way to hide these from anyone.

There is no 100% guaranteed way to do what you ask. You can obsfucate the code and add a time based license, but its not going to take too much effort for someone to work round this if they want to.
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess I'll put this in a more relevant place to attract more replies
 
adil abdelah
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you give me please un exemple ou url talk about "obsfucate the code and add a time based license" ?

I want to encrypte the pages .jsp and the .classes ! it's possible ? and there is no way to decipher all that ?

If we can found a free solution, w'll buy some solution but they must answer and satisfy our need because our solution don't communicate with Internet, it's a Intranet !

thank you
best regards
 
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't encrypt it. You can obfuscate it, that basically means "make it less readable". But even then it's still readable (the JVM needs to be able to read it).
About the time based licence: you could write something like: if(currentDate > dayThatLicenceEnds) System.exit(1); but that will be "easy" to abuse (change system-time, change the value in the .class file).
 
adil abdelah
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, you are right ! everyone can change the code .class and activate the application

so, we can buy somme solution ? i don't konw it, but i supposed some thing like "use usb key for exemple" or some connecter can communicate with our application, but no bady can change the parameter or make copy this connecter or usb key

It's possible ?
 
adil abdelah
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
so, there is any solution to buy it ?

i want just to know some website talk about this security of J2EE Application with some software or application.exe for exemple, some thing like this present how work this communication ?

Cdt

 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not really. Any solution suffers from that same issue - a determined hacker will be able to work round any key mechanism you use.
 
I knew that guy would be trouble! Thanks tiny ad!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic