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

Adds --with-sqlcipher flag #232

Merged
merged 7 commits into from Jun 20, 2018

Conversation

@WA9ACE
Copy link
Contributor

commented Jun 6, 2018

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.

@WA9ACE

This comment has been minimized.

Copy link
Contributor Author

commented Jun 6, 2018

Build passed on all rubies but head. Head test environment didn't install sqlite.

@gazayas

This comment has been minimized.

Copy link
Contributor

commented Jun 6, 2018

Interesting! I haven't seen an implementation of this in the gem itself, so I wonder what the moderators might think of this.
I know I'm not a moderator of this repository, so I don't know if this'll carry any weight...
But I thought changing the method name to using_sqlcipher_p for the c method and using_sqlcipher? for the ruby method would help to make it in line with the style of the other ? methods (like closed_p db.closed? in database.c).

@tenderlove tenderlove merged commit 918ffe0 into sparklemotion:master Jun 20, 2018

1 check failed

continuous-integration/travis-ci/pr The Travis CI build failed
Details
@padde

This comment has been minimized.

Copy link

commented Aug 22, 2019

@WA9ACE thanks for this. Do you happen to have example code for how to connect to sqlcipher from Ruby?

@WA9ACE

This comment has been minimized.

Copy link
Contributor Author

commented Aug 23, 2019

@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.

@WA9ACE

This comment has been minimized.

Copy link
Contributor Author

commented Aug 24, 2019

@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

@padde

This comment has been minimized.

Copy link

commented Aug 24, 2019

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.