sqlcipher

SQLite extension providing 256-bit AES encryption for database files

brewmacoslinux
Try with needOr install directly
Source

About

SQLite extension providing 256-bit AES encryption

Commands

sqlcipher

Examples

Create and encrypt a new database with a password$ sqlcipher encrypted.db sqlite> PRAGMA key = 'your_password'; sqlite> CREATE TABLE users (id INTEGER, name TEXT);
Open an existing encrypted database and query it$ sqlcipher encrypted.db sqlite> PRAGMA key = 'your_password'; sqlite> SELECT * FROM users;
Change the encryption password of an existing database$ sqlcipher encrypted.db sqlite> PRAGMA key = 'old_password'; sqlite> PRAGMA rekey = 'new_password';