I'm building an SDK to be used in a hosting app. This SDK includes working with DB using SQLite.
One of the requirements, is that the DB will be encrypted in order to prevent pulling the SQLite database from the device and using the user private information.
I started to work with SQLCipher, but there is no support for 64bit architecture devices, which causing the application to crash.
I checked some other possibilities, but all of them causing other issues that I decided to try handle it by myself.
My questions:
- Does Android have some encryption mechanism for DB files?
- Can I encrypt the file when the application starts, and decrypt it again when the application is closing? I know that in iOS there is some kind of possibility called NSFileProtection
- Do you know other library that can handle the DB encryption, that supports 64bit devices?
- Do you know if there is an Android solution for this, without using JNI(javax.crypto)?
I'll be happy to get any information or help.