Hi Ashiq,
The PRAGMA key = 'some value'; is issued internally when you perform
SQLiteDatabase.openOrCreateDatabase(...). So once you've
successfully authenticated your user with the old password, you will
have access to a SQLiteDatabase instance, which you can do something
such as:
database.rawExecSQL(String.format("PRAGMA key = '%s'", newPassword);
On 7/6/12 2:00 AM, ashiq sayyad wrote:
Thanks Nick.
I found something as below--
sqlite> PRAGMA key = 'old passphrase';
sqlite> PRAGMA rekey = 'new passphrase';
But it seems like command line commands.
I want to do it programmatically in my android
application after launch like some SQLiteDatabase.rekey
kind of API....