Encrypt exisiting database in Android -


i have app published in play store. now, want encrypt database of app.

i know sqlcipher android can me. problem app used lot of users , have lots of unencrypted data inside it.

now, how can use sqlcipher existing unencrypted database? previous data gets encrypted without problem , new data gets going should.

you can encrypt plaintext database using sqlcipher using following commands or alternatively can find java example code on github.

$ ./sqlcipher plaintext.db sqlite> attach database 'encrypted.db' encrypted key 'testkey'; sqlite> select sqlcipher_export('encrypted'); sqlite> detach database encrypted; 

you can encrypt user's database part of installation of new app overriding onupgrade method in installer.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -