What exactly does *NSFileProtectionComplete* mean?

Deadly 提交于 2020-01-15 05:19:24

问题


I'm looking at the NSFileManager class reference and I'm a bit confused by what NSFileProtectionComplete means. This is what the class reference says:

The file is stored in an encrypted format on disk and cannot be read from or written to while the device is locked or booting.

Does this mean that the file is stored in encrypted format on disk always... regardless of whether the device has a passcode (or similar security mechanism) set?


回答1:


complete protection

(NSFileProtectionComplete): The class key is protected with a key derived from the user's passcode and the UID of the device. Shortly after the lock a device by the user (after 10 seconds when "Request code"> "Ready"), the decrypted class key is discarded, so that all data of this class are inaccessible until the user enters the code again or unlock the device with touch ID.

Q: GERMAN https://www.apple.com/de/business/docs/iOS_Security_Guide.pdf

=> so the decryption key is only valid while the device remains unlocked



来源:https://stackoverflow.com/questions/35454173/what-exactly-does-nsfileprotectioncomplete-mean

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!