IOS: is it safe to store user confidential information in [NSUserDefaults standardUserDefaults]?

I understand that in addition to some general settings, the iOS application can only see the contents of the created one [NSUserDefaults standardUserDefaults]. I assume the OS is looking for an application identifier to do this, right? I want to know if there is a way that other applications can collect the information that my application stores in the user's default settings.

+5
source share
3 answers

No other applications will be able to access the information stored in your default settings for your application. But this does not mean that information cannot be obtained. You can connect the device to Xcode and run the application. On devices, you can view information about your application, and information stored in the default user will be listed there.

As a rule, it is not recommended to store user confidential data there, although it is not so easy to access, it is still available. For general non-personal data or settings, this is really not a big problem. You can always use the built-in access to the key chain to store information about the username and password and use the default settings for everything that you may need.

, , . . , -. .

+8

un-jailbroken . - , , ; , , (, ) Keychain .

+1

, , . , - -, , , NSUserDefaults, , .

0

All Articles