I have the program and I need to restrict it. But I don't know what way the best. When I run the program I ask for registration key and username. Then take username+somestring+DateTime.Now
. Convert it in hash and compare it with key. If true
then save in AppData
file with username and key. And when run the program do the same. And from this string get date. If DateTime.Now.Day != DateFromString.Day
then false
. But if user delete this file and change time and then register... He can open it.
What the best way add restriction for one day?
Thanks in advance.