Security config file.

Security config file.
0.0 0


Hi all,
I’m working in one project using cocos2d-x platform. My game has some config files (plist file). They config something relate to logic of my game, and also take effect to the game play. But it’s easy for user to change it, and cheat the game. So I want to ask you guys : How to encrypt this file? What is the best way to encrypt it (I mean I can edit it with raw data, encrypt it and decrypt this information in code)?

Thanks in advance!


Instead of adding direct values like 100, 2884, or “level-1”, you may want to put some algorithm before saving them on your file and just decrypt it when needed. But then again, cheaters will find a way to cheat, if they are eager, so why bother.