1

I created an encrypted sqlite database with SQLCipher export().

I'm worried about security and reverse engineering of the apk, so the decrypt password is not in the app, but it is entered from the user on app start.

The problem is: How can I read the encrypted database from assets folder?

I've found libraries like SQLiteAssetHelper or ExternalSQLIteimporter but they can't import encrypted databases.

Any idea?

Ford1892
  • 741
  • 2
  • 9
  • 20
  • Creating a fork of `SQLiteAssetHelper` that worked with SQLCipher for Android should take very little time. – CommonsWare Jun 24 '17 at 15:14
  • I'm new to android, I don't know how to do that – Ford1892 Jun 24 '17 at 15:32
  • 1
    This sounds like a similar question https://stackoverflow.com/questions/9109438/how-to-use-an-existing-database-with-an-android-application/9109728#9109728 What is the difference to your problem? Or maybe others you find by searching for "[sqlite] assets". – Yunnosch Jun 24 '17 at 15:34
  • @Yunnosch IT WORKS! Thank you so much, I just modified the code to work with sqlcrypt. This is the solution. – Ford1892 Jun 24 '17 at 16:03

0 Answers0