4

I am using a Pre-Populated SQLite Database with Core Data.

My problem is that i want to encrypt sqlite database file generated by Core Data. I cannot encrypt data because there are lots of queries involved in project. So, only i want to encrypt file.

I have already gone through lots of forum, source code, libraries but couldn't figure out much.

I have already used libraries provided by this iphone blog as well but that libraries are buggy.

If you have some core solution then please help.

Thanks, Tariq

3 Answers 3

5
+50

Data Protection:

Data protection is a feature available for iOS 4 devices that offer hardware encryption: iPhone 4, iPhone 3GS,  iPod touch (3rd generation or later), and all iPad models. This article outlines how to enable and verify data protection.

http://support.apple.com/kb/HT4175

Link to apple article from way back machine as original link is removed

Apple developer blog describing functional part of NSFileProtectionComplete.

“NSFileProtectionComplete

        The file is stored in an encrypted format on disk and cannot be read from or written to while the device is locked or booting.”
Sign up to request clarification or add additional context in comments.

1 Comment

how to possible encrypted data to Decrypted data objective c
1

Apple includes support for its CommonCrypto library in iOS, and has a sample code project to demonstrate use of asymmetric and symmetric encryption/decryption.

Which approach you take depends on how you intend to secure the data; a symmetric approach could require storing the key in the application, which reduces security somewhat. But the sample code should get you started, either way.

Comments

0

Data protection is a feature available for iOS 4 devices that offer hardware encryption: iPhone 4, iPhone 3GS, iPod touch (3rd generation or later), and all iPad models. This article outlines how to enable and verify data protection.

http://support.apple.com/kb/HT4175

Hope this helps

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.