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

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

问题描述

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

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

我的问题是,我想加密sqlite 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.

感谢,
Tariq

Thanks, Tariq

推荐答案

数据保护:

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

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

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

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文件(使用Core Data)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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