我正在使用带有核心数据的预填充SQLite 数据库。
我的问题是我想加密Core Data生成的sqlite数据库文件。我无法加密数据,因为项目中涉及很多查询。所以,只有我想加密文件。
我已经浏览了很多论坛、源代码、库,但还是没搞清楚。
我已经使用过这个 iphone blog 提供的库也一样,但是图书馆有问题。
如果您有一些核心解决方案,请提供帮助。
谢谢, 塔里克
最佳答案
数据保护:
数据保护功能适用于提供硬件加密的 iOS 4 设备:iPhone 4、iPhone 3GS、iPod touch(第 3 代或更新机型)以及所有 iPad 型号。本文概述了如何启用和验证数据保护。
http://support.apple.com/kb/HT4175
Link to apple article from way back machine as original link is removed
Apple 开发者博客描述了 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.”
关于iphone - 加密和解密 Sqlite 文件(使用核心数据),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4254404/