• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create a license for a J2EE application?

 
adil abdelah
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • 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.
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic