That error indicates that you are attempting to do one of the following:
- open an encrypted database without a key;
- open an encrypted database but the key material is incorrect;
- provide a key to open a non-encrypted database (note that “keying” an unencrypted database does not encrypt it, see How to encrypt a plaintext SQLite database to use SQLCipher (and avoid “file is encrypted or is not a database” errors)); or
- open a database using a mismatched major version of SQLCipher (e.g. a 3.x database with 4.x or vise versa see Upgrading to SQLCipher 4)