This discussion forum post should point you in the correct direction: Upgrading to SQLCipher 4
It sounds like your database was created using SQLCipher v3 and you’re attempting to open it using SQLCipher v4. To verify this assumption is correct, you can run PRAGMA cipher_version on each side.