Changing the machine date will easily bypass your security mechanism. You need something more robust, which cannot be controlled by anybody other than you.
If your application is going to run connected to the web, you might be able to poll a remote server to see if the application is allowed to run or not. This is more flexible in that you can control the validity of the application without embedding dates into it.
There might even be off-the-shelf commercial components that do this for you.
But a more serious problem is that you have reason to distrust your client. Maybe you can collect part of the money when you deliver a limited-period beta and take it on good faith that he'll give you the remainder later.
发布评论
评论(1)
更改机器日期将很容易绕过您的安全机制。你需要更强大的东西,除了你之外任何人都无法控制它。
如果您的应用程序要连接到网络运行,您可以轮询远程服务器以查看是否允许该应用程序运行。这更加灵活,因为您可以控制应用程序的有效性,而无需在其中嵌入日期。
甚至可能有现成的商业组件可以为您执行此操作。
但更严重的问题是你有理由不信任你的客户。也许你可以在提供限时测试版时收取部分资金,并真诚地相信他会在稍后给你剩余的资金。
Changing the machine date will easily bypass your security mechanism. You need something more robust, which cannot be controlled by anybody other than you.
If your application is going to run connected to the web, you might be able to poll a remote server to see if the application is allowed to run or not. This is more flexible in that you can control the validity of the application without embedding dates into it.
There might even be off-the-shelf commercial components that do this for you.
But a more serious problem is that you have reason to distrust your client. Maybe you can collect part of the money when you deliver a limited-period beta and take it on good faith that he'll give you the remainder later.