加密&解密Sqlite文件(使用核心数据) [英] Encrypt & Decrypt Sqlite file (Using Core Data)

查看:174
本文介绍了加密&解密Sqlite文件(使用核心数据)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的问题是我想要加密sqlite的 SQLite数据库Core Data 生成的数据库文件。我无法加密数据,因为项目中涉及到很多查询。所以,只有我想加密文件。



我已经经历了很多论坛,源代码,图书馆,但无法弄清楚。



我已经使用了这个 iphone blog 以及这些图书馆都是错误的。



如果您有一些核心解决方案,请帮助。

谢谢,
Tariq

解决方案

数据保护:



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



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



链接到原始链接的方式返回机器上的苹果文章



Apple开发人员博客描述NSFileProtectionComplete的功能部分。

 NSFileProtectionComplete 

文件以磁盘上的加密格式存储,在设备被锁定或启动时无法读取或写入。


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. I cannot encrypt data because there are lots of queries involved in project. So, only i want to encrypt file.

I have already gone through lots of forum, source code, libraries but couldn't figure out much.

I have already used libraries provided by this iphone blog as well but that libraries are buggy.

If you have some core solution then please help.

Thanks, Tariq

解决方案

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."

这篇关于加密&解密Sqlite文件(使用核心数据)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆