-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
I was opening a special encrypted DB file, and sqlcipher doesn't seem to process the file correctly, giving error net.zetetic.database.sqlcipher.SQLiteNotADatabaseException: file is not a database (code 26): , while compiling: SELECT COUNT(*) FROM sqlite_schema;
SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(processedFile, "xxxxxxx", null, null, new SQLiteDatabaseHook() {
@Override
public void preKey(SQLiteConnection connection) {
}
@Override
public void postKey(SQLiteConnection connection) {
connection.executeRaw("PRAGMA cipher_compatibility = 1;", null, null);
}
});The configuration in SQLiteStudio/sqlcipher CLI, and db is openable
PRAGMA KEY = xxxxxxx;
PRAGMA cipher_compatibility = 1;Metadata
Metadata
Assignees
Labels
No labels