-->

解决日期时间许可问题最好的方法[关闭](Best ways to solve Date time l

2019-08-18 00:34发布

Right now we are developing a small Windows-based application. We used to provide trial version license for a period of 30 days and after the expiration of 30 days, the product would be unusable.

Now here's my problem:

Imagine a client who downloaded and installed the application on Jan 1 and by Feb 1, the trial period would end. Now on Jan 31, if he changes the system time to Jan 1 again, the system starts to count from beginning, so the client can extend the trial period by simply changing the system time.

And as per community suggestions, we can check the internet/date time, but as a small concern, we can't randomly validate license through a server and if the user goes offline and changes his system date time, then there will be a problem again. Are there any other ways to tackle this problem?

I have already checked this question.

What are the best ways to tackle this problem? The product is a C# application.

Answer 1:

也许是最好的解决办法是有授权详细核查在线服务器。 如果你让你的应用程序依赖在客户端计算机上的数据,那么总有一个机会,他们会打破它。 但是,对于您的客户端必须能够访问互联网



Answer 2:

按照您的要求,我所看到的,你不能检查日期在线服务器。 这是离线系统相当明显。

所以,你需要做的几件事 -

  1. 设置高encypted数据的形式登记日期和expirydate和地方保存在注册表数据库。

  2. 虽然应用程序每次打开,获取最新的时钟日期和保存在注册表中的加密数据。

  3. 确保检查时钟日期和最后使用日期。 如果最后usagedate <clockdate,然后一切正常,但如果usagedate> clockdate,用户已经改变了时钟日期。 所以,不要更新注册表。

  4. 一旦lastusagedate到达有效期,会弹出一个消息“您的试用已过期。”

希望这可以帮助。

干杯



文章来源: Best ways to solve Date time license issue [closed]
标签: c# licensing