C++ Game saving

Started by
10 comments, last by cpatuzzo 13 years, 3 months ago
If you can figure out what the binary file, then I would go. If not, take a simple approach and use a text file rename. Just make sure the number is not easy to understand, or any form of tags. For example, if you have a save point, can not easily find a place to save, not to an x, y position, but simply keep a list of index points. Of course what is hackable, even the game itself in the run-time memory. However, if you do these simple things, you will atleast deter "casual" hackers, because the "real" hackers will not stop, however, it may not be worth the time, an independent developer, but not non-Business lovers developers.
Advertisement
If you want to be able to tell if the save has been modified, you could run an md5 hash on it and drop it at the end of the file. Of course, there's nothing to stop a cracker regenerating this. Maybe you could hide it in the file. This might be a bit harder to spot if you encrypt the file first using something simple like a 64-bit monoalphabetic cipher followed by some transposition cipher. Security through obscurity does kind of suck though. Maybe you could implement some public key crypto-system where the private key is hidden in the program source - they'd have to reverse engineer your application to extract it.

Chris

This topic is closed to new replies.

Advertisement