-
-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sqlcipher build #326
Comments
I found a way to use custom build in electron application.
release mode(electron-builder):
|
Following these instructions produce this error for me :
|
unfortunately, better-sqlite3 doesn't support sqlitecipher. The project better-sqlite3-sqlcipher is not an alternative because it's deprecated (last commit 2 years ago). But it's really nice for people who don't need encryption, but rather performance gains 😄 EDIT: I found the package |
Can't find a good way to do custom build since you can't pass custom flags when using tools like electron-builder, so I forked this repo and made a sqlcipher build.
In case anyone need this, just
npm install better-sqlite3-sqlcipher
(also requires rebuild for electron), usedb.pragma('key = "password"')
to pass password after initialze(first time to set password), there is an exampleit goes with win_ia32/win_x64/linux_ia32/linux_x64/mac_x64 pre-compiled binaries for openssl, so other platforms or archs aren't supported for now.
The text was updated successfully, but these errors were encountered: