-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
How to integrate SQLite3MultipleCiphers with RSQLite ? #137
Comments
In principle, the SQLite3 Multiple Ciphers amalgamation source code can be used as a drop-in replacement for the official SQLite amalgamation source code. However, usually you need to specify some extra preprocessor symbols to make it work as you expect. Without knowing which C preprocessor symbols you defined for compiling the source code, it is hard to tell whether the resulting library works as expected or not.
Again, in principle, it should not require any special handling, except for specifying the relevant URI parameters or executing the corresponding PRAGMA statements.
Well, your description is too vague for analyzing the problem, unfortunately.
In principle, all encryption parameters can be set via the database URI. However, I don't know how the R SQLite interface handles URI parameters. If they are passed unchanged to the SQLite open function, then SQLite3 Multiple Ciphers will handle them properly. However, if the R SQLite interface performs other activities before SQLite3 Multiple Ciphers gets a chance to handle the URI parameters, this may explain your problems. |
Thank you for your quick reply. As I am not a C developper, I feared that I could have missed some low level integration detail. I just missed a compilation error with AES needing some compilation flag. Once fixed, PRAGMA statements work as intended through RSQLite + SQLite3MultiCiphers. |
Enabling URI parameters in SQLite makes it usually a lot easier to configure non-default ciphers for SQLite3 Multiple Ciphers, because you don't need to explicitly perform separate
Glad to hear that. |
Hello,
I'm trying to integrate SQLite3MultipleCiphers into the R package RSQLite (package issue: r-dbi/RSQLite#484) but I think I miss some part of the picture.
As I understand, RSQLite use the amalgation source code of SQLite right now. I managed to replace it with the amalgation source code of SQLite3MultipleCiphers and to recompile the package without error.
The idea behind was that, maybe, the current R <--> C binding of the RSQLite package with SQLite would be enough to handle SQLite3MultipleCiphers.
But then, PRAGMA statements don't trigger encryption, DB is still in plain text. Am I missing something? Is there some bindings or other dev I should do to make it work?
The text was updated successfully, but these errors were encountered: