SQLCipher website mentions
"Init the database in onCreate() using SQLiteDatabase.loadLibs(this); //first init the db libraries with the context"
I am calling this loadlibs only once in my first activity (seems to be working). I want to make sure I do not need to call this function for every activity that might access the database. Is this correct?
How do I change the database password? I tried rekey but that does not work. It still takes the old password.
Any help would be appreciated.
Thank you.
SQLiteDatabase.rawExecSQL("PRAGMA key = 'old_password';");
SQLiteDatabase.rawExecSQL("PRAGMA rekey = 'new_password';");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With