Questions tagged [data-protection-class]

4 questions
10
votes
2 answers

What is the default file protection on iOS and how to change it

Reading here: (https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/AddingCapabilities/AddingCapabilities.html) Enabling Data Protection (iOS, WatchKit Extension, tvOS) Data protection adds a level of…
lostintranslation
  • 23,756
  • 50
  • 159
  • 262
7
votes
4 answers

NSFileProtectionComplete doesn't encrypt the core data file

I am using Xcode 7.3 for iOS 9.3 to try and encrypt a Core Data file. I am trying to use NSPersistentStoreFileProtectionKey and set it to NSFileProtectionComplete to enable the encryption. It is not working for some reason and I can always see the…
EmbCoder
  • 562
  • 1
  • 7
  • 16
4
votes
0 answers

Not possible to set Data Protection Entitlement to NSFileProtectionCompleteUntilFirstUserAuthentication without raising a red warning in Xcode

I'm using the data protection capability in my app, however I've found that Xcode will always display a warning if the type of the protection is anything other than NSFileProtectionComplete within the entitlements file. Here's what Xcode…
Gruntcakes
  • 37,738
  • 44
  • 184
  • 378
3
votes
1 answer

ProtectedMemory - How To Ensure That The Size Of The Byte Array Is A Multiple Of 16?

I'm reading up on the ProtectedMemory class in C# (which uses the Data Protection API in Windows (DPAPI)) and I see that in order to use the Protect() Method of the class, the data to be encrypted must be stored in a byte array whose size/length is…
slickboy
  • 451
  • 2
  • 8
  • 24