iOS Core Data encryption -
I encrypt the core-data field using the 'secercar' class provided in one of Apple's documents I am here. SecKeyWrapper class is non-ARC I'm wondering if this is still the best way to encrypt key data areas or is there a new / better solution available?
Thanks
To keep data in constant core data by default Uses NSFileProtection
For apps built for iOS 5.0 or later, stores data by default in encrypted format on the store disk. The default security level prevents data access unless the user first unlocks the device. While configuring your frequent stores, you can change the security level by assigning a custom value to the key of the NSPCistent store fileproduction process. For additional information about new data protection in iOS 5.0, see "Data Protection Impressions"
If you want to modify the default file security behavior, to store your core data, change the value for a different value in the dictionary of your store options.
Example:
NSDictionary * storeOptions = @ {NSPersistentStoreFileProtectionKey: NSFileProtectionComplete}; If (! [Coordinator addPersistentStoreWithType: NSSQLiteStoreType Configuration: Zero URL: [Self StoreURL] Option: Store Error Option: & amp; Error] {{Self Current Error: Error]; }
Comments
Post a Comment