核心数据SQLite加密? [英] Core Data SQLite encryption?

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

问题描述

有没有人在他们的Core Data SQLite商店上使用加密?

Has anyone used encryption on their Core Data SQLite stores? And how did you implement it?

推荐答案

我确信在Core Data中使用加密的唯一方法是加密当应用程序退出时使用整个持久存储文件,或者使用托管对象子类中的自定义访问器来加密和解密数据,因为它们被单独保存到持久存储。

I'm pretty sure the only way to use encryption in Core Data is to either encrypt the entire persistent store file when the app quits or to use custom accessors in managed object subclasses to encrypt and decrypt data as they are individually saved to the persistent store.

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

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