密码保护NSDocumentDirectory中的文件

时间:2013-04-29 11:18:16

标签: ios nsdocumentdirectory ios-enterprise

您好我之前问question,但无法得到完美答案。

所以让我再次提出这个问题,我有一个要求,我将使用一个密钥来保护NSDocumentsDirectory中的所有文件,该密钥每天从服务器推送。什么是最好的方法而不会影响性能

我也会在密钥过期时执行密钥刷新,我应重新加密或重新保护目录中的所有文件。我将使用iOS钥匙串从服务器存储密钥。

我尝试了NSFileManager的文件保护值,但我无法在那里使用自己的密钥。

我看到了这一切

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

并且不知道如何继续。所以请大家帮忙吧。任何样本或好的实施方式或任何人之前都做过类似的事情。

提前感谢。

0 个答案:

没有答案
相关问题