-
Notifications
You must be signed in to change notification settings - Fork 203
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
Adds --with-sqlcipher flag #232
Conversation
Build passed on all rubies but head. Head test environment didn't install sqlite. |
Interesting! I haven't seen an implementation of this in the gem itself, so I wonder what the moderators might think of this. |
@WA9ACE thanks for this. Do you happen to have example code for how to connect to sqlcipher from Ruby? |
@padde sure! I'll try to put up a blog post this weekend on how to decrypt a sqlcipher database and query it with this. |
@padde Here's a quick little tutorial on using sqlcipher from ruby with some example code. Let me know if you have any trouble! https://wa9ace.net/2019/08/24/how-to-query-sqlcipher-encrypted-databases-with-ruby.html |
@WA9ACE thank you! Very kind of you to put together a blog post. Now I understand how the pieces fit together. Have a good one! |
Hi! I am trying to install and use sqlcipher on Ruby, on Linux. Ruby, sqlite3 and sqlcipher are all installed on this machine. As well as the following command: where /opt/sqlcipher/ is the path where sqlcipher is installed. This does not result in an error, but then the example cited on your website, written in ruby, gives the following error when trying to parse an encrypted .db file: Do you have any idea why I can't get ruby to work with sqlcipher? Thanks :) |
Adds automatic support for compiling with sqlcipher to allow for encrypted database support.
Also adds a top-level eh? method to check if sqlite3 was installed/compiled with sqlcipher support.