Using DBFlow, how to encrypt an already existing database?

Viewed 542

I'm using DBFlow to handle databases in my project and I want to make the existing database encrypted.

I know that I probably will have to drop the existing unencrypted database and create another encrypted. And I also know that I can use SQLCipher with DBFlow as described the documentation.

My question is: how and when should I drop the database and how do I recreate one without requesting that the users uninstall the app? Can it be done via migrations?

Please provide some code on how to achieve that. Thanks.

1 Answers
Related