在iOS中使用Core Data进行数据加密 [英] Data encryption with Core Data in iOS

查看:130
本文介绍了在iOS中使用Core Data进行数据加密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只需要确认这一点。



这是正确的说,使用iPhone 3GS及以上,任何写入文件系统的数据加密使用硬件加密?通过在文件系统上创建XXX.sqlite文件,存储在其中的数据已经加密。



也为了进一步的安全 NSFileProtectionComplete 是否提供?



感谢。

解决方案

$ p> [_ persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:@ {NSPersistentStoreFileProtectionKey:NSFileProtectionComplete}错误:&错误]


I just need a confirmation on this.

Is it correct to say that, with the iPhone 3GS and above, any data written to the filesystem is encrypted using hardware encryption? By simply creating the XXX.sqlite file on the file system, the data stored in it is already encrypted.

Also for further security NSFileProtectionComplete is provided?

Thanks.

解决方案

[_persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:@{ NSPersistentStoreFileProtectionKey : NSFileProtectionComplete } error:&error]

这篇关于在iOS中使用Core Data进行数据加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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