2

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 ?

Muhammad Shaker
  • 163
  • 3
  • 14

3 Answers3

1

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).

Nir Golan
  • 1,336
  • 10
  • 24
1

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"?

Data Protection on iOS

Implementing and Testing iOS data protection

Community
  • 1
  • 1
Victor Ronin
  • 22,758
  • 18
  • 92
  • 184
0

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.

LJ Wilson
  • 14,445
  • 5
  • 38
  • 62
  • Lou is right. The data could be access through something like iExplorer. – Victor Ronin Oct 22 '12 at 22:57
  • The OP's question is about securing his data from other applications which may be installed on the device (which does not seem to be sensitive other than it is purchased content). Most applications store purchased and downloaded content in the applications documents directory. – LJ Wilson Oct 23 '12 at 01:02