using SQLCipher with android shipped sqlite database file

前端 未结 3 1178
无人共我
无人共我 2020-12-09 23:21

I have a database file reset in the assets file.

How can I use SQLCipher to encrypt the database in android?

3条回答
  •  温柔的废话
    2020-12-09 23:55

    They cover how to use SQLCipher in detail on their website here

    Basically you download their binaries, set them up in your project and then use their SQLiteDatabase class instead of the standard android SQLiteDatabase class.:

     import info.guardianproject.database.sqlcipher.SQLiteDatabase;
    

提交回复
热议问题