加密和解密Sqlite文件(使用核心数据)

Tar*_*riq 4 sqlite iphone encryption core-data objective-c

我正在使用预先填充的SQLite数据库和核心数据.

我的问题是我想加密Core Data生成的sqlite数据库文件.我无法加密数据,因为项目中涉及大量查询.所以,只有我想加密文件.

我已经经历了很多论坛,源代码,库,但不知道多少.

我已经使用过这个iphone博客提供的库,但是这些库是错误的.

如果您有一些核心解决方案,那么请帮忙.

谢谢,塔里克

小智 5

数据保护:

数据保护功能适用于提供硬件加密的iOS 4设备:iPhone 4,iPhone 3GS,iPod touch(第3代或更高版本)以及所有iPad型号.本文概述了如何启用和验证数据保护.

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

从原来的链接删除回来的机器链接苹果文章

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.”
Run Code Online (Sandbox Code Playgroud)