How to use data protection with master data?

I am developing an iOS 7 application and above that uses Core Data, and I have been asked to encrypt the stored data. I am using SQLitea database behind the scenes.

I read about the Data Protectionfunction overview iOS technologies and Programming Guide for iOS applications , but I'm not sure that it can be used with Core Datato encrypt the file SQLite... is not it? How?

If using Data Protectionwith is Core Datapossible, would it meet the encryption requirement of the stored data? I mean, would that be enough? I also found that there are some third-party data encryption providers SQLite, such as SQLCipher . Should I integrate one of the third party parties?

Thanks in advance

+4
source share
2 answers

[...] but I'm not sure if it can be used with Core Data to encrypt a SQLite file ... can it?

As mentioned in this answer , you have to make sure that the SQLite file itself is encrypted when created.

NSPersistentStoreFileProtectionKey NSFileProtectionComplete , [...] , ". documentation .

DV_, , , .

, ?

. "" , Apple, .

, , , .

, SQLCipher, , , . , , .

, Transformable Attributes NSValueTransformer ( details).

+4
NSDictionary *attr = @{ NSFileProtectionKey : NSFileProtectionComplete };
NSError *error = nil;
[[NSFileManager defaultManager] setAttributes:attr ofItemAtPath:YOUR_DATABASE_PATH error:&error];

4- iPhone uid. .

0

All Articles