You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Single quote not escaped when entering password for SQLCipher encrypted db #1105
I was just testing out the new version of DB Browser for SQLite (3.10.0) with SQLCipher 3.4.1 databases and noticed it doesn’t appear to escape single quotes when entering a password.
Here’s an example of a db generated using the SQLCipher cli:
sqlite> .open test.db
sqlite> PRAGMA KEY = "test'123";
sqlite> PRAGMA cipher_page_size=1024;
sqlite> CREATE TABLE t1(a,b);
sqlite> INSERT INTO t1(a,b) VALUES('one for the money', 'two for the show');
sqlite> SELECT * FROM t1;
one for the money|two for the show
sqlite> .q
When you attempt to open it in DB Browser for SQLite (3.10.0) using the passphrase test'123 it fails.
Useful extra information
This may be a regression as the previous version was able to open SQLCipher dbs with single quotes.
Thanks @R4N. Yep, that definitely looks like a bug. @MKleusberg is the right person to look at that, though he's on holidays through to the 30th August.
Pretty sure he'll get this fixed soon after returning. 😄
@R4N Thanks for pointing this out! That is indeed a regression that was introduced by some other change. I've just pushed some code to fix it, so with tomorrow's nightly builds (see the main page of our repository on Github for download links) it should work again. Can you give them a test and see if it's working for you?
Awesome will do 😄 Although it may not be until Tuesday since Monday is the Labor Day Holiday here in the states. Will post back once i've gotten a chance to test it out and confirm. Thanks!
Just tried the latest nightly build (3.10.99) and can confirm it's working as expected for me wrt escaping single quotes in the SQLCipher passphrase. Nice!
Awesome, thanks for testing, @R4N! 😄 We plan to release DB4S 3.10.1 in a week or two with this and some other bug fixes. So hopefully the new version is out before anybody else runs into the same problem 😉
Activity
justinclift commentedon Aug 25, 2017
Thanks @R4N. Yep, that definitely looks like a bug. @MKleusberg is the right person to look at that, though he's on holidays through to the 30th August.
Pretty sure he'll get this fixed soon after returning. 😄
cipher: Fix passphrases containing single quotes
MKleusberg commentedon Sep 1, 2017
... and I'm back 😄
@R4N Thanks for pointing this out! That is indeed a regression that was introduced by some other change. I've just pushed some code to fix it, so with tomorrow's nightly builds (see the main page of our repository on Github for download links) it should work again. Can you give them a test and see if it's working for you?
R4N commentedon Sep 1, 2017
@MKleusberg
Awesome will do 😄 Although it may not be until Tuesday since Monday is the Labor Day Holiday here in the states. Will post back once i've gotten a chance to test it out and confirm. Thanks!
MKleusberg commentedon Sep 1, 2017
Cool, thanks 😄 And no worries, just let me know if it's working whenever you have a chance to test it.
R4N commentedon Sep 5, 2017
@MKleusberg @justinclift
Just tried the latest nightly build (3.10.99) and can confirm it's working as expected for me wrt escaping single quotes in the SQLCipher passphrase. Nice!
MKleusberg commentedon Sep 6, 2017
Awesome, thanks for testing, @R4N! 😄 We plan to release DB4S 3.10.1 in a week or two with this and some other bug fixes. So hopefully the new version is out before anybody else runs into the same problem 😉
cipher: Fix passphrases containing single quotes