Skip to content

fix: allow a single quote in the passphrase on iOS and Electron - #708

Open
robingenz wants to merge 1 commit into
masterfrom
fix/passphrase-single-quote
Open

robingenz wants to merge 1 commit into
masterfrom
fix/passphrase-single-quote

Conversation

@robingenz

Copy link
Copy Markdown
Member

What changed

A passphrase or a database path that contains a single quote failed on iOS and Electron. Both values are now written as an SQL string literal, with each single quote doubled.

Note for the release notes

A passphrase with two single quotes in a row was read as one single quote before. It is now used as written. An app that doubled the quote itself must now pass the passphrase with one quote.

How it was tested

On the iOS simulator with the real SQLCipher library: create, reopen, rekey, encrypt and decrypt a database with a quote in the passphrase and in the folder name. On Electron the helper and the type check were run. It was not run in an Electron app.

The Keychain part of #703 is tracked in #702.

Close #703

🤖 Generated with Claude Code

The passphrase and the database path are now written as an SQL string literal, with each single quote doubled.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS: passphrase is interpolated unescaped into PRAGMA key / ATTACH ... KEY, and the stored passphrase uses the default Keychain accessibility

1 participant