Hi there, is it possible to check a room encrypted...
# room
u
Hi there, is it possible to check a room encrypted database’s password? Calling
databaseBuilder.openHelperFactory(SupportFactory(passPhrase)).build()
with a wrong password does not fail as it seems to be ‘lazy’. (Well, it’s a factory). The failure only happens on first access. Additionally I have read somewhere, that accessing a Room/SQLite DB with a wrong password will corrupt it. Is that true?
z
Usually you would get migration fail, because it would read some strange
int
value and would call
onDowngrade
. At least that is my experience. It never corrupted db, just crashed if this wasn't catched.