Using DBFlow, how to encrypt an already existing database?
Asked Answered
P

1

7

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.

Passive answered 17/3, 2016 at 19:33 Comment(1)
Did you find any solution yet? I have a similar requirement.Impetigo
H
0

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

Haslam answered 16/8, 2017 at 12:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.