Xcode Data Protection
Asked Answered
P

1

7

Ever since the release of Xcode 5.0, there has been a new edition of the Capabilities tab in the target settings of an Xcode project. It includes the ability to configure the entitlements on your projects App ID. One of the capabilities is Data Protection. Enabling the setting in the target settings does no more than just:

Add the "Data Protection" entitlement to your App ID

How do I actually implement Data Protection in my application? What are the applications of Data Protection? Does it encrypt all my application data?

Plumbism answered 27/3, 2014 at 23:50 Comment(1)
It seems that setting was to support newer devices which were having hardware encryption and then we have to explicitly give the dataProtection level to files which we are creating in our application. In one of my application i didn't even enable data protection and just created my file with DataProtection options and it was protected when device was locked.Bren
T
1

As explained in 's documentation on the subject: Enabling Data Protection.

Data protection adds a level of security to files stored on disk by your app. Data protection uses the built-in encryption hardware present on specific devices to store files in an encrypted format on disk.

This means that the data stored will automatically be encrypted.

Teacher answered 9/11, 2015 at 9:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.