如何保护plist或NSUserDefaults

时间:2011-01-10 12:33:12

标签: objective-c cocoa cocoa-touch

这些文件是否可以轻松加密以防止用户(使用越狱的iPhone)修改值?

2 个答案:

答案 0 :(得分:1)

你所追求的是Keychain api。越狱设备上的其他应用程序可以获取您的钥匙串值,但它们已加密。

Here's a decent tutorial I just googled up.

答案 1 :(得分:0)

您可以使用Secure-NSUserDefaults,这是防止更改plist的好方法。

您可以在以下位置获取代码:https://github.com/matthiasplappert/Secure-NSUserDefaults

祝你好运!