I just installed sqlcipher in CentOS. SQLCipher is an open source extension to SQLite that provides transparent 256-bit AES encryption of database files. It is useful for encrypting YAML files and export to sqlite, which is commonly use as a database in mobile devices.
Unlike ubuntu, you cannot do a “sudo yum install sqlcipher” as it does not have a package for centos. So you have to compile it from the source code and install.
Step 1: Download the source files from github
git clone https://github.com/sqlcipher/sqlcipher.git
Step 2: Define SQLITE_HAS_CODEC and SQLITE_TEMP_STORE=2
export SQLITE_HAS_CODEC export SQLITE_TEMP_STORE=2
Step 3: Install the latest openssl
sudo yum install openssl
Step 4: Go into the source code folder that you clone from github and run the following command:
./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto" make
Step 5: Move the sqlcipher file from the local folder to /usr/local/sbin
cp sqlcipher /usr/local/sbin/
And you are done! To check that it is running properly, do a sqlcipher version check
[root@raymond-john-yml-exporter sqlcipher]# sqlcipher --version 220.127.116.11 2014-04-03 16:53:12 a611fa96c4a848614efe899130359c9f6fb889c3