new-host-2% ./sqlite3 encrypted.dbsqlite> PRAGMA key = 'test123';sqlite> ATTACH DATABASE 'unencrypted.db' AS unencrypted KEY '';sqlite> SELECT sqlcipher_export('unencrypted');sqlite> .qnew-host-2% ./sqlite3 unencrypted.dbsqlite> .schemaCREATE TABLE secrets(id, password, key);
I am currently using SQLCipher for my Iphone project and the version
of SQLCipher I use is the latest (3.7.10). I guess that is the version
that is packaged with the iOS version of SQLCipher.
There was a file under the tools which is decrypt.c which was used to
decrypt the files encrypted using SQLCipher but the documentation for
this file says that it can open only version 1 database.
But i went ahead and tried to use this tool to decrypt my database but
it gave me a segmentation error.
Is there a latest version of this file that can be used for higher
versions of SQLCipher?
The error that I am getting is because of decrypt.c not supporting
higher versions of DB or some error from my end?
In the meanwhile can you point me to some resource,if any, which has a list of SQLCipher command i.e. one specifically added by sqlcipher such as the export command you mentioned.