Skip to content
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

Can you explain where SQLCipher used in source code? #2

Closed
tr1cks opened this issue Mar 7, 2019 · 4 comments
Closed

Can you explain where SQLCipher used in source code? #2

tr1cks opened this issue Mar 7, 2019 · 4 comments

Comments

@tr1cks
Copy link

tr1cks commented Mar 7, 2019

I very appreciate your work, but can't figure out by one sight where SQLCipher comes to work.

@sjemens
Copy link
Owner

sjemens commented Mar 7, 2019

The main difference from the official QSQLITE plugin is the linking with the sqlcipher library. This happens in qsqlcipher.pro. Secondary, in main.cpp I named the plugin as to not conflict with the qsqlite naming. To enable the encryption capabilities one should use the PRAGMA options as are documented in the sqlipher API. You can see the most basic use cases in the tests

@tr1cks
Copy link
Author

tr1cks commented Mar 11, 2019

Thanks for clarification. Now I understood that sqlcipher is drop-in-replacement library.

Can you specify what versions of openssl and sqlcipher was used? I trying to build them for iOS and Mac OS right now.

@sjemens
Copy link
Owner

sjemens commented Mar 11, 2019

@tr1cks
I see that you have forked the android branch so I guess you are asking what versions are the static libs. Openssl is version 1.1.1a and sqlcipher is version 4.0.1. (In desktop I am always using the system libraries and since I am using Arch Linux these are always the latest versions.)
I think you should modify the build scripts for openssl and sqlcipher to build your libraries. However I am sorry to say that I never programmed for iOS and Mac OS, so I am not sure if I can offer any more assistance there.

@tr1cks
Copy link
Author

tr1cks commented Mar 15, 2019

@sjemens
I added support for iOS and Mac OS in my fork. I prefer to use OpenSSL, but other option is platform encryption API.

@sjemens sjemens closed this as completed Mar 3, 2022
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

No branches or pull requests

2 participants