Can I write a builtin Clock in my standalone application exe file?

1 回表示 (過去 30 日間)
Benson Gou
Benson Gou 2020 年 6 月 22 日
編集済み: Rik 2020 年 6 月 22 日
Dear All,
I am using the datetime to control the days the users can use our standalone application code. But I found a flaw of this approach: the user change his computer date and time, then my code will not have any use-time limit.
I am wondering if anybody knows how to solve this problem. Can I write a builtin clock in my code to control the datetime on my own?
Thanks a lot.
Benson

採用された回答

Rik
Rik 2020 年 6 月 22 日
編集済み: Rik 2020 年 6 月 22 日
Host the UTC timestamp on your server and then use a function to retrieve it. That way you have a known correct date to verify your licenses with. ( the NIST has a page that displays the UTC, it used to be possible to retrieve the timestamp through Matlab, but they blocked it due to large amounts of trafic that attracted )
If you want offline protection as well, I don't think you will be able to do it, even if you track total use time.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeClocks and Timers についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by