![]() ![]() Finally, pass the database to DaoMaster as usual:ĭaoSession = new DaoMaster ( db ). Then, when creating your database instance, just call. For example the simple DevOpenHelper, also provided in DaoMaster. Make sure to use a subclass of OpenHelper provided in DaoMaster to create your database instance. See the SQLCipher for Android page on how to add SQLCipher to your project. SQLCipher is a custom build of SQLite using 256-bit AES encryption. GreenDAO supports SQLCipher with a binding directly. Thus, you should only use encryption if you really need it. So your APK size will grow by a couple of MByte. Those custom builds consist of CPU dependent, native code. Using custom SQLite buildsīecause Android does not support encrypted databases out of the box, you need to bundle a custom build of SQLite inside your APK. It prevents an attacker from simply opening the database file. Using a password-protected, encrypted database adds an additional layer of security. ![]() So if an attacker obtains access to a database file (by gaining root access, for example by exploiting a security flaw or tricking the user of a rooted device), the attacker may get access to all data inside that database. While newer versions of Android support file system encryption, Android itself does not provide encryption for database files. GreenDAO supports encrypted databases to protect sensitive data. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |