Don't know how to encrypt database using SQLCipher

Posted by Armaan on Stack Overflow See other posts from Stack Overflow or by Armaan
Published on 2012-07-04T07:38:07Z Indexed on 2012/07/04 21:16 UTC
Read the original article Hit count: 150

Filed under:
|
|
|

I have included SQLCipher into my project exactly like explained in this link: http://sqlcipher.net/ios-tutorial/

But I am not sure how to encrypt the database I have read description from above link but not getting.
Actually what I am doing is if application is opening first time then it will copy the database(i.e. without encryption) to the document directory. One more thing my database is blank when copying from bundle to document directory.
I have tried to use sqlite3_key function after opening the database but nothing is encrypted. But I didn't found something like how to encrypt database when copying from bundle to document directory. I am planning to use FMDB so it would be better to reply according to that.
Please guide me how to do that or point to direction if is there any tutorial for it. Also suggest what should be the standard approach to do that.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about ios