Encrypt & Decrypt Sqlite file (Using Core Data)

前端 未结 3 1454
孤独总比滥情好
孤独总比滥情好 2021-02-10 14:33

I am using a Pre-Populated SQLite Database with Core Data.

My problem is that i want to encrypt sqlite database file generated by Core Data

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-10 15:07

    Data Protection:

    Data protection is a feature available for iOS 4 devices that offer hardware encryption: iPhone 4, iPhone 3GS,  iPod touch (3rd generation or later), and all iPad models. This article outlines how to enable and verify data protection.

    http://support.apple.com/kb/HT4175

    Link to apple article from way back machine as original link is removed

    Apple developer blog describing functional part of NSFileProtectionComplete.

    “NSFileProtectionComplete
    
            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.”
    

提交回复
热议问题