The question is simple
What I have is:
- I have a database file which is encrypted using sqlcipher.
- I also have the passphrase which was used to encrypt this db file
What I need is:
- I need to decrypt the database file/ need a database file which is unencrypted/non encrypted/decrypted.
Download and Build sqlcipher
--Skip this if sqlcipher is already installed
Pull the code from https://github.com/sqlcipher/sqlcipher in a directory (say ~/sqlcipher)Decrypt the database to a plaintext database
Find the decrypted database at ~/plaintext.db which you can use with any sqlite browser like this.
Update : September 2015
http://sqlitebrowser.org now supports sqlcipher databases. That's neat.
Building on the previous answers , I have a comprehensive answer. I have the configuration- OS X version - 10.10.4 Steps : 1. Donwload and build OpenSSL code:
In another directory,
Change '/path/to/libcrypto.a' in the following command to your path
Decrypt to plaintext database (As illustrated in previous post by Vinay)
Tis should help you decrypt the encrypted file...
This shell script will decrypt a SQLCipher database called mydb.db and create one called mydb-decrypt.db. Params are $1=key, $2, path to read & write from.
If you wanted to do this in a single command line, the guts of this are:
Use SQliteStudio
Select SQLiteChiper and enter the password. The database will be opened.