G
golfdude
I am releasing an application and I have a private/public key setup to
generate a license. I also would like to give licenses out for
specific number of days. I have that also working, but realized that I
am not supporting the case when system time can be changed. How can
one code for system time change ?
My general algo is as follows:
1. Use a private key to generate a license code which has the number
of days built in.
2. Send the expiry date, license code and public key to the customer.
3. App code checks if current date is less than expiry date, and
verifies the license code using the public key.
But step 3 is not protected by somebody changing system date. How does
one go about protecting oneself from this issue ?
Thanks
gd
generate a license. I also would like to give licenses out for
specific number of days. I have that also working, but realized that I
am not supporting the case when system time can be changed. How can
one code for system time change ?
My general algo is as follows:
1. Use a private key to generate a license code which has the number
of days built in.
2. Send the expiry date, license code and public key to the customer.
3. App code checks if current date is less than expiry date, and
verifies the license code using the public key.
But step 3 is not protected by somebody changing system date. How does
one go about protecting oneself from this issue ?
Thanks
gd