Jump to content
  • Advertisement
Sign in to follow this  
vince35

elapsed time

This topic is 2496 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

I did licensing for my application, but there a major flaw into it. If I give a temporary license, let's say for 1 month, and just look at the system time, the user can simply change its system time in a month and I would have no way to know about it.

I know many apps do it in a smarter way, but I have no clue how. Do you?

Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Though hackers could easily find some kind of way around this, you could maybe do some kind of secret hashed log or registry key containing the timestamp of the last time the program was open. Then you can invalidate your license if the current time is ever less than the last used time (with DST accounted for of course).

Not super secure but a possible solution.

To be honest there's probably not that many people who are willing to mess with their system clocks forever just to get to use one free application :). Unless you actually suspect this is happening I wouldn't stress too much about it.

Share this post


Link to post
Share on other sites
I thought about checking it the way you suggest, but I see downsides in invalidating the license. I don't care too much invalidating the license of someone who tried to screw me, but one can have a legit reason to change its system time.

And I'm not super worried about it, but if I am to do it, I might as well do it properly (and learn something at the same time!)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!