NSUserDefaults数据是否已同步到iTunes? [英] Are NSUserDefaults data synced to iTunes?

查看:86
本文介绍了NSUserDefaults数据是否已同步到iTunes?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道NSUserDefaults数据是未加密的,不应用于存储敏感信息.我试图了解某人可以轻松获得这些信息. 此线程显示,它只是iPhone文件系统上的普通文件.

I understand that NSUserDefaults data is unencrypted and should not be used to store sensitive information. I'm trying to understand how easily someone could get at that information. This thread shows that it's just a plain file on the iphone filesystem.

在iPhone同步期间(如果启用了应用同步),此文件是否会传输到用户的计算机?如果是这样,那么任何人都非常容易阅读存储在NSUserDefaults中的信息

Will this file be transferred to the user's computer during an iPhone sync (if app sync is enabled)? If so, then it'd be extremely easy for anyone to read information stored in NSUserDefaults

推荐答案

我尝试了这个方法.原来,它与您在模拟器中看到的plist文件不同,但是在同步后,它位于备份目录中.您可以通过运行字符串来查看内容.

I tried this out. Turns out that it's not the same plist file that you can see in the simulator, but it is there in the backup directory after a sync. You can see the contents by running strings.

还有更多使用钥匙串的理由!

All the more reason to use the keychain!

这篇关于NSUserDefaults数据是否已同步到iTunes?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆