How will I check if the database file is SQLCiper3.5 or SQLCipher4.1?

#1

Right now our application uses SQLCipher 3.5.5 and we’re planning to upgrade to version 4.1. I want to check if the database is 3.5, if it is I will migrate it to 4.1.

#2

Hi @lancecontreras

Typically the flow is: attempt to open the database, if it fails, attempt to migrate, if that fails then the key material is incorrect.

My colleague @sjlombardo gave further details in his response here: Upgrading to SQLCipher 4

1 Like