Skip to content

Cross-platform backup verification#698

Merged
softartdev merged 1 commit intodevfrom
cursor/cross-platform-backup-verification-8231
Mar 6, 2026
Merged

Cross-platform backup verification#698
softartdev merged 1 commit intodevfrom
cursor/cross-platform-backup-verification-8231

Conversation

@softartdev
Copy link
Owner

Fix encrypted database cross-platform incompatibility between Desktop JVM and Web WASM.

The Desktop JVM uses SQLCipher v4 mode, but the Web WASM was using sqlite3mc's default cipher, leading to "Incorrect password" errors when importing encrypted backups from Desktop to Web. This PR configures the Web WASM to also use SQLCipher v4 mode for consistent encryption across platforms.


Open in Web Open in Cursor 

Configure SQLCipher v4 cipher mode on Web WASM to match Desktop JVM
and Android encryption format, enabling cross-platform encrypted
backup portability.

The Web WASM platform was using sqlite3mc's default cipher, which
is incompatible with the SQLCipher v4 cipher used by the Desktop
JVM (sqlite-jdbc-crypt) and Android (SafeRoom/SQLCipher).

Changes:
- WebDatabaseHolder: Set PRAGMA cipher='sqlcipher' and
  PRAGMA legacy=4 before PRAGMA key when opening encrypted DBs
- WebSafeRepo: Set cipher parameters before PRAGMA rekey when
  encrypting an unencrypted database

Co-authored-by: Artur Babichev <artik222012@gmail.com>
@cursor
Copy link

cursor bot commented Mar 6, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@softartdev softartdev marked this pull request as ready for review March 6, 2026 11:49
@cursor
Copy link

cursor bot commented Mar 6, 2026

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on April 12.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@softartdev softartdev merged commit 8c27ef4 into dev Mar 6, 2026
21 of 30 checks passed
@softartdev softartdev deleted the cursor/cross-platform-backup-verification-8231 branch March 6, 2026 11:59
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.

2 participants