Reputation: 163
Is there any way to make directory in iOS secured and protected just for my app? in my application user buys books and I save books on documents sub directory, so I don't want any other application to access this directory any suggestions ? should I encrypt this data ?
Upvotes: 2
Views: 1019
Reputation: 23278
You may be interested to take a look at Data protection for iOS:
http://support.apple.com/kb/HT4175
What are the new "iOS data protection APIs"?
Implementing and Testing iOS data protection
Upvotes: 1
Reputation: 1336
The documents folder is indeed sandboxed from other apps, but it is not safe from 3rd party utilities which lets you check the iPhone's file system (jailbreak not required) , such as iExplorer.
If you want to secure your app data you should read about the data protection api's in Apple's developer portal. There's a nice WWDC lecture as well (I think its from 2011).
Another solution could be packing your material in a secure format , such as an encrypted zip file (some sort of password derived from the device's uuid you create on the spot).
Upvotes: 1
Reputation: 14427
The documents folder for your application is sandboxed and can be utilized only by your application. If you are storing resources to be used by your app, this is the place to put them.
Upvotes: 0