Generating different types of serial key for different subscriptions for java application

67 views Asked by At

I want to add a serial key feature in my java application where the client has to purchase key for a certain peroid (1 month, 6 months, 1 year, etc) after that the client should not be allowed to use the premium features of the software. Its just like windows software where we are allowed to buy serial key and use the premimum features of the software. How would I do that. I have seen some other relavant questions but didn't get the working answer

1

There are 1 answers

4
epoch On
  1. create an encrypted serial key with the information you need, i.e expiry date, type, etc
  2. program should decrypt at startup, and do necessary checks
  3. have a method call check if the client is using an expired licence, if so, disable certain features.

However there are many ways to do this, and you should in no way rely on this being foolproof, if someone wants to break it, they will.

rather focus on making your application as awesome as possible.