Protecting .sav From Hex Editing

Hey all,

My project records your personal best time for completing levels and uploads that time to a leader board. I tasked a friend of mine with breaking the system, and he found he can get 0 second times on levels by editing the .sav file with a hex editor. Is there an easy way to prevent this from happening? What are my options?

Thanks!

Hello! The most simple solution - just calc hash from each important player data and add it to .sav file. Now if you open .sav file you can calc hash from it and compare with stored value… Another approach - use some crypt algorithm and store in .sav file only encrypted data. You can combine both of this methods