2

Hi I asked a question earlier and could not get a perfect answer for it.

So let me ask this question once more, I have a requirement where I will be password protecting all my files in the NSDocumentsDirectory with a key that will be pushed from a server every day. What is the best way to do it without taking a hit on performance.

I would also be doing the key refresh whenever a key expires and I should re-encrypt or re-protect all my files in the directory. I would be storing the key from server using iOS keychain.

I tried NSFileManager's File Protection Values but I could not use my own key there.

I saw all this

http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/AdvancedAppTricks/AdvancedAppTricks.html

What are the new "iOS data protection APIs"?

What are the new "iOS data protection APIs"?

Secure contents in Documents directory

http://iphonedevelopment.blogspot.in/2009/02/strong-encryption-for-cocoa-cocoa-touch.html

http://pastie.org/426530

NSFileProtectionComplete for iOS 4.0 apps

and did not know how to proceed. So please guys any help would be of great use. Any sample or good way to implement or any one has done something like this before.

Thanks a ton, in advance.

Community
  • 1
  • 1
Satheesh
  • 10,998
  • 6
  • 50
  • 93

0 Answers0