Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid dowloading apps data using xcode

I have developed an iPad Application which save user date in both app's Document and Cache folder. Data in the cache folder is highly sensitive. My problem is securing user data. One thing I notice is anyone can plug the iPad to a Mac and use XCode to download .xcappdata file which contains both Document folder and Cache folder. Is there any way to stop this.

like image 716
nath Avatar asked Mar 02 '26 09:03

nath


1 Answers

You don't even need XCode for that. You can use a software like iFunBox to access the apps Document folder.

Instead of turning your app around to use a web service I'd suggest encrptying the data with NSKeyedArchiver.

The encoding is done like this:

- (void)encodeWithCoder:(NSCoder *)coder

Decoding:

- (id)initWithCoder:(NSCoder *)coder

That way you'll have an encrypted file in your Documents folder. I'm using it a lot and it's very easy to implement.

You can read more about it here: https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSKeyedArchiver_Class/Reference/Reference.html

like image 153
Segev Avatar answered Mar 03 '26 23:03

Segev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!