Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一位客户问我如何将许可证密钥和到期日期添加到应用程序;他想将它们分配给程序,然后生成设置。哪种是最安全和最常用的方法?该程序是用 VS.net 2008 编写的。
我能想到的两个选择
创建一个将到期日期编码到密钥中的许可证密钥,并在应用程序运行时读取:
Dim ExpiryDate as Date = LoadLicenseFile 'extracts the hashed expiry date from the file If ExpiryDate < DateTime.Now then Application.Exit
创建一个 Web 服务来处理激活请求并在应用程序运行时连接到该 Web 服务。