如何计算我的软件的30天跟踪时间 [英] how to calculate 30 days trail time for my software

查看:114
本文介绍了如何计算我的软件的30天跟踪时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用系统日期和时间来计算时间。但问题是,如果用户将更改系统日期和时间,那我该怎么办?或者什么是最好的解决方案?

i can calculate time by using system date and time. But problem is that if the user will change system date and time that time what can i do ? or what will be the best solution ?

推荐答案

使用串行密钥方法。给出用日期编码的序列密钥。
use serial key method. give serial key which encoded with the date.


你可能需要在你的软件第一次启动时连接到的某个地方托管一个网站,这个网站将存储密钥与登记日期。您的服务将提供一个API,软件将在其启动时将注册密钥传递给该服务,并且服务将在响应时说明试用期是否已过。这方面的缺点显然是软件需要在线连接才能工作,如果你使用基于http的API,你真的需要使用https进行api调用。



为.NET应用程序创建安全试用版 - A教程 [ ^ ]
You'll probably need to host a website somewhere that your software connects to when it first starts\is registered which will store the key with the registration date. Your service will provide an API that the software will pass the registration key to when it starts and the service will respond to say if the trial period has elapsed. The downside to this is obviously that the software needs an on-line connection to work, and you'll really need to use https for your api calls if you use an http-based API.

Creating Secure Trial Versions for .NET Applications - A Tutorial[^]


创建文件并将文件创建日期与文件比较中的或存储值进行比较。
at the time of registration u create a file and compare the file created date with or store value in the file compare.


这篇关于如何计算我的软件的30天跟踪时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆