sqlite encryption for android sqlite encryption for android sqlite sqlite

sqlite encryption for android


litereplica supports encryption using the ChaCha cipher, faster than AES on portable devices.

There are bindings for Android.

To create and open an encrypted database we use an URI like this:

"file:/path/to/file.db?cipher=...&key=..."


If anyone is still looking:

Override SQLiteOpenHelper function as below:

void onConfigure(SQLiteDatabase db){    db.execSQL("PRAGMA key = 'secretkey'");}