Let's say I write a game application. I want the level of the player to be stored in an external file.
How can I prevent a hacker from writing and modifying the file to put another level ? I want the file to be modified by my application only.
I can sign the file's content with a key, but then this key will be stored in the application, therefore it would be possible for a hacker to decompile the binary and find the key.
Is there any way to do this ?