Question

I want to store a value (counter) of my application (C#) on the client's machine in a way, that he/she can not manipulate or reset it. I thought about storing it parallel in the database (MSSQL), the registry and in a file. And if one value is lost (deleted) I've two bakcup options to restore the counter. Ok, if the user delete all three values simultaneously, the counter is reset to zero. That's an option I could live with. But I wonder if there are any other concepts or best practices for storing values secure locally ... may be I only use the wrong search terms. Any hints? Many Thanks! Konrad

Was it helpful?

Solution

No chance.

I start your application within my VMware image, where all changes are reverted when i close it. After a restart of the VM i have a fresh machine that never seen your application (or counters).

Even if you take multiple places where you store your informations. Which one wins if all these counters are having different values?

To get non-manipulatable counters you have to store them on your server and provide an API to your client application to read or increase that value.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top