# How to open encrypted db created with golang driver?

**URL:** <https://discuss.zetetic.net/t/how-to-open-encrypted-db-created-with-golang-driver/4301>\
**Category:** SQLCipher\
**Created:** [March 22, 2020, 1:02pm UTC](https://discuss.zetetic.net/t/how-to-open-encrypted-db-created-with-golang-driver/4301 "2020-03-22T13:02:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![SillyPosition](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@SillyPosition](https://discuss.zetetic.net/u/SillyPosition)\
**Post date:** [March 22, 2020, 1:02pm UTC](https://discuss.zetetic.net/t/how-to-open-encrypted-db-created-with-golang-driver/4301/1 "2020-03-22T13:02:37Z")

</div>

I used [https://github.com/xeodou/go-sqlcipher](http://go-sqlcipher) to generate an encryped db.  
In the `sql.Open` I give a key as described in the docs, and the db is generated encrypted.

I want to use a sql db browser GUI such as sqlstudio or “db browser for sqlite”, both prompt me to enter a password, but with any of the settings there (sqlcipher 3.x, 4.x or custom) Im unable to open the db.

I went to the github repo of sqlcipher and fetched sqlcipher-v4.3.0 and compiled it.  
The generated sqlcipher binary is version 3.30.1, and I try to do the same:  
./sqlcipher my.db  
PRAGMA key = ‘password’;

Yet the DB remains encrypted and Im unable to browse it’s data.  
Any ideas? what am I missing?

---

_[View the full topic](https://discuss.zetetic.net/t/how-to-open-encrypted-db-created-with-golang-driver/4301)._
