I use DBFlow to process the databases in my project, and I want the existing database to be encrypted.
I know that I will probably have to abandon the existing unencrypted database and create another encrypted one. And I also know that I can use SQLCipher with DBFlow, as the documentation describes.
My question is: how and when should I drop the database and how to recreate it without asking users to uninstall the application? Can this be done through migrations?
Please provide some code on how to achieve this. Thanks.
Natan source share