mutecomm / go-sqlcipher

Self-contained Go sqlite3 driver with an AES-256 encrypted sqlite3 database
Other
159 stars 60 forks source link

File is not a database on query #21

Closed hazcod closed 3 years ago

hazcod commented 3 years ago

Hi,

I am trying to write a commandline client for Enpass 6.x password vaults. These are stored on regular sqlite databases as attached. enpassvault.zip

However, every query will return file is not a database while the Python version seems to work fine. Any idea?

https://github.com/hazcod/enpass-cli-test

% go run main.go 
2020/12/07 09:55:14 printing tables
2020/12/07 09:55:15 could not retrieve crypto parameters: could not query crypto parameters: file is not a database
exit status 1
jmastr commented 3 years ago

Issue was that we tried to open an SQLCipher 3.x DB with go-sqlcipher 4.x and it's not compatible. I think the issue can be closed.