I'm using the Android Room API and https://github.com/commonsguy/cwac-saferoom to encrypt the relevant database.
I would like to browse the encrypted DB file. I'm using DB Browser for SQLite 3.11.2 on Windows (the SQLCipher version of it) to try and browse this file.
Here is the code that creates the DB:
val encryption = SafeHelperFactory(charArrayOf('f', 'o', 'o'))
db = Room.databaseBuilder(
Util.application!!,
AppDatabase::class.java,
"AppDatabase"
)
.openHelperFactory(encryption)
.build()
When I copy this file from the Android file system to the Windows file system, and attempt to open it with the DB browser, it asks me for a password and for the encryption settings.
I'm entering "foo" as the password, since that's the password that I encrypted it with. I'm leaving the encryption settings on "SQLCipher 4 defaults", since that's apparently what the latest version of CWAC-SafeRoom uses. Still, it just keeps asking me for the password again.
How do I open this file using the DB browser?