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

port sqlcipher to go-sqlite3 #622

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

port sqlcipher to go-sqlite3 #622

wants to merge 12 commits into from

Conversation

auxten
Copy link
Contributor

@auxten auxten commented Aug 24, 2018

hi mattn:
I ported sqlcipher to go-sqlite3 and just made it work, I knew that the PR is mess up, here are what i did:

  1. port sqlcipher from 3.20 to 3.24, put it in sqlite3-binding.c
  2. put libtomcrypt files in (just for easy building)
  3. port your see branch back
  4. some readme modification for people just want make it work quickly
  5. modify _example/simple just for testing if it works

I don't know weather you are willing to add this feature. if it is, I will do some clean up and make the PR decent. here is a list i am willing to do, and any advise is welcome :)

  1. make a patch for sqlite3-binding.c, add it to upgrade package
  2. make the crypto lib out side the project
  3. put openssl and commoncrypt support back, maybe
  4. make a build tag for enabling the crypto codec
  5. more tests
  6. cleanup the garbage commits

@coveralls
Copy link

coveralls commented Aug 24, 2018

Coverage Status

Coverage decreased (-0.01%) to 58.154% when pulling 9bf2a8a on CovenantSQL:master into 3198c77 on mattn:master.

@@ -3,7 +3,7 @@ package main
import (
"database/sql"
"fmt"
_ "github.com/mattn/go-sqlite3"
_ "github.com/CovenantSQL/go-sqlite3-encrypt"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not change.

README.md Outdated
[![Build Status](https://travis-ci.org/mattn/go-sqlite3.svg?branch=master)](https://travis-ci.org/mattn/go-sqlite3)
[![Coverage Status](https://coveralls.io/repos/mattn/go-sqlite3/badge.svg?branch=master)](https://coveralls.io/r/mattn/go-sqlite3?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/mattn/go-sqlite3)](https://goreportcard.com/report/github.com/mattn/go-sqlite3)
[![GoDoc Reference](https://godoc.org/github.com/CovenantSQL/go-sqlite3-encrypt?status.svg)](http://godoc.org/github.com/CovenantSQL/go-sqlite3-encrypt)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please do not change.

README.md Outdated
@@ -46,14 +49,32 @@ Supported Golang version:

This package can be installed with the go get command:

go get github.com/mattn/go-sqlite3
go get github.com/CovenantSQL/go-sqlite3-encrypt
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed that just in case you dont want to merge my pr.
so, any other modify I need to do?

@mattn
Copy link
Owner

mattn commented Aug 30, 2018

You have better to work on $GOPATH/src/github.com/mattn/go-sqlite3 with branch not on $GOPATH/src/github.com/CovenantSQL/go-sqlite3-encrypt.

@auxten auxten changed the title [WIP] port sqlcipher to go-sqlite3 port sqlcipher to go-sqlite3 Aug 30, 2018
@mattn
Copy link
Owner

mattn commented Aug 30, 2018

@gjrtimmer How do you think this PR?

@skaufman-socialflow
Copy link

skaufman-socialflow commented Sep 24, 2018

FYI https://github.com/xeodou/go-sqlcipher is basically what is described in this PR (I can't speak for the code though, haven't read it)

@lewgun
Copy link

lewgun commented Mar 17, 2019

any progress ?

@auxten
Copy link
Contributor Author

auxten commented Mar 18, 2019

any progress ?

you can just use my fork version.

@gjrtimmer
Copy link
Collaborator

gjrtimmer commented Aug 21, 2019

@gjrtimmer How do you think this PR?

Looking into it

@joyciep
Copy link

joyciep commented Feb 21, 2020

Any updates?

@jgiannuzzi
Copy link

I have created the following PR to allow using SQLCipher with go-sqlite3, which I believe supersedes this one: #1109

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

Successfully merging this pull request may close these issues.

8 participants