当前位置:Gxlcms > 数据库问题 > CoreData加密,使用SQLCipher

CoreData加密,使用SQLCipher

时间:2021-07-01 10:21:17 帮助过:2人阅读

使用CocoaPod:

pod ‘EncryptedCoreData‘, :git => ‘https://github.com/project-imas/encrypted-core-data.git‘

二、在 AppDelegate.m  添加 

#import "EncryptedStore.h"

三、替换coordinator

NSPersistentStoreCoordinator *coordinator = [EncryptedStore makeStore:[self managedObjectModel] passcode:@"你的密码"];

具体还有几个用法,在GitHub主页可以看到.


Mac如何查看使用SQLCipher加密数据库文件:

还是在GitHub,SqliteDatabaseViewer

加密测试demo下载


CoreData加密,使用SQLCipher

标签:

人气教程排行