Skip to content

Instantly share code, notes, and snippets.

@jorgerance
Created December 30, 2019 12:14
Show Gist options
  • Save jorgerance/dbdc65ab4e68013b125a4612a3935011 to your computer and use it in GitHub Desktop.
Save jorgerance/dbdc65ab4e68013b125a4612a3935011 to your computer and use it in GitHub Desktop.
[Accesing SQLite encrypted DB] - Using sqlcipher and sqlite3
0 ✓ steve@hal9000 ~ $ sqlcipher jeanscollection.db
# insert password for decryption
PRAGMA key = '<PASSWORD>';
> ok
# show databases
.databases
> main: /Users/steve/jeanscollection.db
# show tables
.tables
> test_table
# insert into blue_jeans
insert into blue_jeans (name,ref) values('steve_jeans','bluejeans9000');
# quit
sqlite> .exit
0 ✓ steve@hal9000 ~ $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment