While we do not have a turnkey solution for Electron there are a few options available. We have Commercial customers who have utilized SQLCipher for Windows. A similiar approach should work for macOS and Linux.
When using Electron on Windows, you'll want to use the SQLCipher for Windows package.
Here are instructions for building the sqlite3 Javascript library for Electron with SQLCipher on Windows:
npm install
set LINK=libcrypto.lib crypt32.lib ws2_32.lib
npm install sqlite3 ^--build-from-source ^--sqlite_libname=sqlcipher-static ^--sqlite="%CD%\platforms\windows\x64" ^--runtime=electron ^--target=24.3.0 ^--dist-url=https://electronjs.org/headers
npm start sqlite3 --build-from-source ^--sqlite_libname=sqlcipher-static ^--sqlite="%CD%\platforms\windows\x64" ^--runtime=electron ^--target=24.3.0 ^--dist-url=https://electronjs.org/headers
npm start
Zetetic Commercial Edition support covers SQLCipher itself, the libraries we distribute directly, and their stable API. It does not extend out to the Electron package, or the boundary where Electron packages are linking to or calling the SQLCipher library. Of course, if there is an issue with the SQLCipher binary Zetetic provides, we would work with you to resolve it.
For more advanced integrations with Electron, please reach out to us regarding our SQLCipher Enterprise program.
This package can be purchased directly from the Zetetic Store and licensed software is delivered immediately upon payment. A free trail is also available.
If you have additional comments or questions please contact us.