i trying secure sensible data implementing encryption in existing , functioning database setup in android application.
i tried follow tutorial (http://sqlcipher.net/sqlcipher-for-android/) , browsed lot of foruns, including google group cipher. however, still don't understand how sqlcipher work , how should adapt code serve needs.
i following implementation of databases in android: http://www.vogella.com/articles/androidsqlite/#databasetutorial_database, meaning have extension of sqliteopenhelper class , class store crud methods.
in situation how should use sqlcipher? should define password? should use loadlibs(context)? in main activity? or in every activity accesses database?
i feel i'm there, need final push figure out :p in advance!
in situation how should use sqlcipher?
exactly normal normal sql implementation.
where should define password?
if using sqlitehelper create database when first this:
helper.getwriteabledatabase("mypassword"); on first call create database password. on upcoing calls work password.
( figured out when went source: https://github.com/sqlcipher/android-database-sqlcipher/blob/master/src/net/sqlcipher/database/sqliteopenhelper.java, checkout method getwriteabledatabase( string pw ) there! )
where should use loadlibs(context)?
right before call helper.getwriteabledatabase("mypassword"); the first time!
Comments
Post a Comment