Export database Android

Hello, I would like to know if I can use only sqlcipher to export the file.
then use the normal sqlite inside the app and encrypt the files with cipher only for export. Thank you

Hello @Christian_Conti

You can use SQLCipher for Android to operate on both SQLCipher encrypted databases, and plain-text SQLite databases. We have a convenience function called sqlcipher_export(…) that will allow for various conversions. You can read more about that in our documentation here.

thanks for your quick response. I can also do the reverse? import sqlcipher in sqlite?

Hello @Christian_Conti

Yes, you can both import a plain-text SQLite database and encrypt it, or you can export an encrypted SQLCipher database to a plain-text SQLite database.

thank you, one last thing, I would just use the classes necessary to encrypt and decrypt the SQLite database, for the lighter application. Can you tell me what classes should I take?

Currently in my app I entered this dependence:
compile ‘net.zetetic:android-database-sqlcipher:3.5.6@aar’

Thank you

Hello @Christian_Conti

Aside from the SQLCipher API documentation, you might consider reviewing the test cases within the SQLCipher for Android test suite for various usage examples.