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:
- Open web app before creating new WASM to create database handled by original WASM.
- Hardcode encryption key in SQLiteQueryExecutor and build new WASM.
- Ensure that database is re-encrypted by examining logs from shared worker.
- Ensure that app is as usable as before.
Reviewers: kamil
Reviewed By: kamil
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D10450