-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLCipher v4 incompatibility #20
Comments
Thanks for reporting the issue.
The default configuration parameters for SQLCipher 4 did not change, only the underlying SQLite version was updated.
The big question is, which cipher configuration parameters SQLite3MC effectively used.
Obviously all versions based on the new implementation of the encryption extension are affected, unfortunately. Well, there is a reason I call this project still work in progress ... 😞
Yes, I fully understand that. Be assured that we will find a solution soon.
I just made a few experiments myself. It seems that the
Well, I will have to analyze what's going wrong when setting cipher configuration parameters via the |
Nice to know ! Thanks |
In fact, it is a rather stupid bug: The command I'm already working on a fix for the issue and will provide it within the next couple of days. BTW, when using the |
@utelle I tested on few databases I had and things are working now 😄 !
Is it written somewhere ? I don't remember reading it in the documentation. I made changes to my code as it did not follow the right execution order for pragmas... |
Great. Thanks for confirming. I will then make an official release tomorrow (or the day after).
You are welcome. Thanks for reporting such issues.
Well, it is not yet mentioned in the documentation, but certainly should be mentioned. Currently only the SQLCipher scheme is affected, because it is the only one, for which several versions (with differing defaults) are supported.
For selecting the default variants of SQLCipher scheme versions you only need to issue the -- Select SQLCipher version 4 database encryption scheme
PRAGMA cipher='SQLCipher';
PRAGMA legacy=4; If URI parameters are used to set cipher configuration parameters, the order doesn't matter, because the code takes care and checks for the |
I made a new release, version 1.1.2, today, and I added a note to the |
Hi !
While troubleshooting an issue (Willena/sqlite-jdbc-crypt#25) on my repo, I came to the conclusion that there is something wrong when using SQLCipher and SQLiteMC together. SQLiteMC cannot read databases created with SQLCipher and SQLCipher cannot read database created by SQLiteMC.
I did some tests myself with a fresh build of SQLCipher and using 1.0.1 binaries of SQLiteMC.
Here is the scenario I used:
fromCipher.db
using SQLCipher:fromMC.db
with SQLiteMCBoth test databases files are available here test_databases.zip
Any thoughts or ideas ?
Note : SQLite Version is 3.33.0, SQLiteMC version is 1.0.1, SQLCipher is 4.4.2
Note : SQLiteMC can write and read to it own created database as well as SQLCipher.
Note : Bug is also present in latest version (SQLiteMC 1.1.0)
This issue prevent users coming from SQLite tools like DB Browser (which support SQLCipher) to use their database with their java code (in the use case of my JDBC connector).
The text was updated successfully, but these errors were encountered: