Keys that don’t Expire

When you are about to create a new key, you might have noticed that you are required to specify an expiration date (i.e. the number of day the key should be “valid”). However, expiration date does not affect the validity of a key. Here’s how:

When you perform an Activation or Validation, SKM will check whether the key exists in the database and that it is not blocked. If these conditions are fulfilled, an object with key information will be returned. You will see fields such as creation date, set time, time left, features, etc, stored in the object. Even if the key has “expired”, you will be able to get a key information object.

Time Limited Keys

So, if keys don’t become invalid when they have “expired”, how would we go about to enable time restriction? This is quite easy, if we use the 8 boolean fields (true or false) called features.  Say we use feature1 as an indicator that the key is time-restricted. Then, we could write some code that first checks whether feature1 is true, and if this is the case, we could check the timeleft field (note, if you check periodically, please read the section Periodic Validation as it is done in a slightly different way). Below, there is some code in C#. The pid, uid, and hsum can be found here.

About The Author

Most Helpful User

Rate This Article

(114 out of 195 people found this article helpful)

Leave A Comment?