looks like I confused the zero-byte value with the zero value. So my
previous statement is not relevant and not an issue.
Anyway, our android app uses version 3.0.1 and after migrating to
version 3.5.4 the key does not unlock the database.
What I have done so far:
checked the passwords being entered in 3.0.1 and 3.5.4 -> both are the same.
checked the passwords until they enter the native methods -> both are
checked the bytes after
in 3.5.4 since this is the only real difference between the versions ->
they are the same as before.
I downloaded a working database from the android emulator and tried to
open it with sqlcipher 3.0.1 and 3.5.4. I failed with both attempts.
I rekeyed the database in our app to have a shorter key and tried to
open this database by hand. I failed again. the rekey has worked because
I can’t open the database with the old key.
I created a new database with a short key in our app and tried to open
the database by hand. I failed.
The only pragma commands we use in our code are key and rekey so I don’t
think we changed any default settings.
We patched in ormlite in between our app and sqlcipher. I see no problem
with this but maybe I am missing something.
Do you have any idea why I can’t open the database by hand? Can you give
me a direction what I should look into?
Can you have a look at the attached database? It contains only demo data.