Daniel Kivatinos
Daniel Kivatinos

Reputation: 25016

If you store info in the settings file via an iPad is it accessible?

If you store info in the settings file via an iPad is it accessible?

Is this data secure, can other applications see it?


NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];

/*Unsave Username*/

[defaults setObject:[NSString stringWithString:@"secret_data1"]
forKey:@"key1"];

[defaults setObject:[NSString stringWithString:@"secret_data2"]
forKey:@"key2"];

Is that data secure? Can users access this? Can an application? How secure is this?

Upvotes: 0

Views: 143

Answers (2)

WrightsCS
WrightsCS

Reputation: 50707

You can use an encryption method to make it more secure.

Upvotes: 1

Lily Ballard
Lily Ballard

Reputation: 185681

It's not particularly secure. This data is synced to the computer when the iPad backs up, and it's also trivially accessed on a jailbroken device. If you have any secure data you should be using the Keychain instead.

Upvotes: 2

Related Questions