Reputation: 45
I made a small console application game and I was wondering if I could be able to retain data such as highscores and setting in an encrypted file without allowing any modifications to it ? Is there a fast and easy way to achieve that in C++ ? Portability isn't important because I'm using windows api.
Upvotes: 1
Views: 199
Reputation: 1797
Write the scores out as binary data will deter all but the most persistent fakers. Add a binary checksum e.g. md5 will detect when it gets changed.
Upvotes: 2