We’ve been using SQLCipher for some time, and upgraded to 4.2.0 version recently.
However, there is an exception which happens quite randomly even with new version, which has been reported here and there by other people as well:
net.sqlcipher.database.SQLiteException: file is not a database: , while compiling: select count(*) from sqlite_master;
I’ve been investigated this and aware that it might come because of many reasons (wrong DB password, non-terminating zero byte, etc.). Unfortunately we have not been able to identify the root cause of this yet, and still this exception is causing unwanted behavior to our app.
Hence, we are thinking about using
[WCDB](https://github.com/Tencent/wcdb) , which is just a wrapper of SQLCipher, but having its own error handling mechanism.
WCDB lib only supports SQLCipher version 3.x backwards, we’d like to downgrade the SQLCipher verison in our app because we are using 4.2.0.
I understand that this might be out of your support zone, so just asked in case it’s possible to do the downgrade, but it’s bad to hear we can’t do it.