We often use SQLite to save the user data or game data. SQLite is a powerful and useful database. However, there is a database file in your game's sand box. Cheaters will get it from your game and they will edit it to cheat. In this recipe, you will learn how to encrypt your SQLite and prevent cheaters from editing it.
We will use the
wxSqlite library to encrypt SQLite. This is free software. Firstly, you need to install
wxSqlite in Cocos2d-x and edit some code and set files in Cocos2d-x.
wxSqlite3project's zip file. Visit the following url: http://sourceforge.net/projects/wxcode/files/Components/wxSQLite3/wxsqlite3-3.1.1.zip/download