如何检测系统日期回滚? [英] How to detect a system date roll back?

查看:99
本文介绍了如何检测系统日期回滚?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您如何检测用户何时回滚了系统日期?使用情况是为了防止绕开许可,该程序将需要检测在不运行时发生的回滚.

How could you detect when the user has rolled back the system date? The usage situation is to prevent circumventing licensing and the program will need to detect a roll back made that happened when it was not running.

推荐答案

好吧,您可以在程序中使用嵌入式数据库,且加密的系统日期会不时插入.如果您看到较新的"日期早于某个先前的日期,则可以看到有人更改了系统日期.这只是一个主意.

Well, you can use an embedded database in your program with an encrypted system date that gets inserted in every once in a while. If you see that a "newer" date is before some previous date, you can see that somebody changed the system date. It's just an idea.

这篇关于如何检测系统日期回滚?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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