HomePhabricator
Diffusion Comm 3be9c9a59eb6

Use SQLCipher as SQLite engine on web

Description

Use SQLCipher as SQLite engine on web

Summary:
This differential compiles SQLCipher-amalgamation as SQLite engine instead of SQLite-amalgamation. Since SQLCipher-amalgamation compilation requires linking
against openssl we additionally compile openssl to emscripten wasm and link SQLCipher-amalgamation against it.

Test Plan:

  1. Open web app before creating new WASM to create database handled by original WASM.
  2. Hardcode encryption key in SQLiteQueryExecutor and build new WASM.
  3. Ensure that database is re-encrypted by examining logs from shared worker.
  4. Ensure that app is as usable as before.

Reviewers: kamil

Reviewed By: kamil

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D10450

Details

Provenance
marcinAuthored on Dec 22 2023, 7:18 AM
Reviewer
kamil
Differential Revision
D10450: Use SQLCipher as SQLite engine on web
Parents
rCOMMe5200cc68cad: [lib] Fix currentAsOf
Branches
Unknown
Tags
Unknown