Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Data encryption with Core Data in iOS

I just need a confirmation on this.

Is it correct to say that, with the iPhone 3GS and above, any data written to the filesystem is encrypted using hardware encryption? By simply creating the XXX.sqlite file on the file system, the data stored in it is already encrypted.

Also for further security NSFileProtectionComplete is provided?

Thanks.

like image 520
user1253637 Avatar asked Mar 13 '12 19:03

user1253637


1 Answers

[_persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:@{ NSPersistentStoreFileProtectionKey : NSFileProtectionComplete } error:&error]
like image 162
Michael Rose Avatar answered Sep 23 '22 19:09

Michael Rose