Muhammad Shaker
Muhammad Shaker

Reputation: 163

iOS secure directory for specific app

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

Answers (3)

Nir Golan
Nir Golan

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

LJ Wilson
LJ Wilson

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

Related Questions