![]() ![]() SQLCipher databases are portable across platforms, just as SQLite databases are, but plain SQLite clients will not know how to deal with SQLCipher’s encryption scheme. To work with a database encrypted by SQLCipher for Android, you will need a client that has SQLCipher compiled in. So, everything that has been covered to date in the book just works, with the added improvement of encryption. ![]() ToDoRepository and its clients (e.g., viewmodels) are also unaffected. Even ToDoDatabase has just the change to add that one openHelperFactory() call - nothing else is affected. ToDoEntity and ToDoEntity.Store do not need anything special for SQLCipher for Android. The beauty of the SupportSQLite* family of APIs is that, for the most part, Room clients neither know nor care about the actual SQLite implementation. We pass that SupportFactory to openHelperFactory() on our RoomDatabase.Builder, and from there, Room will take over and integrate with SQLCipher for Android. ToDoCrypt/src/main/java/com/commonsware/todo/repo/ToDoDatabase.kt) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |