I need to write a "kill switch" into my C# application for licensing/billing purposes. What is the best way to do that?
The requirements are as follows (its actually 2 kill switches):
1 - "passive kill switch" - If a particular user does not log into the application in X days then the application stops working.
2 - "active kill switch" - A user can log in and set a date in the future when the application will stop working.
I can think of various ways to do this with a database but users might be able to bypass that. Is there a way I can use an encrypted database or something of the sort? Or maybe a secured file that can contain this data?