Reputation: 1885
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.
Upvotes: 7
Views: 590
Reputation: 150
Another probable solution I can think of is to use encryption at hardware layer for mobile memory encryption.
http://itstillworks.com/encrypted-memory-card-3090.html
http://www.lg.com/us/mobile-phones/VS930/JB/Userguide/basics_memory_encryption.html
Upvotes: 0