C++: How to reuse Encrypted Sqlite database in MFC application which is already in iOS(C++:如何在 iOS 中已经存在的 MFC 应用程序中重用加密的 Sqlite 数据库)
问题描述
我正在进行一个项目,我想在我的 MFCC++ 应用程序中重用 iOS 应用程序的 SQLite 数据库.
I am in the middle of one project where I want to reuse SQLite database of iOS application in my MFCC++ application.
iOS 数据库使用 'sqlite3_key()' 加密,并且使用 SQLCipher 用于数据库处理.
The iOS database is encrypted using 'sqlite3_key()' and it is using SQLCipher for database handling.
还有
我正在使用 SQLiteEncrypt 在 CppSQLite3 包装器.
I am using SQLiteEncrypt for databse handling with the help of CppSQLite3 Wrapper.
但是当我尝试在数据库上执行任何语句时,它会抛出异常 文件已加密或不是数据库.
But when I am trying to execute any statement on database it throws and exception File is encrypted or not a database .
我没有得到任何线索.
谁能帮我解决这个问题?
Can any one help me out on this?
我知道它与以下问题重复,但这些问题无效,我无法从该问题中得到任何答案.
I know its duplicate of the following question but that questions are Inactive and I am not able to get any answer from that question.
1.如何在一个平台(iOS)到另一个平台(Windows)使用SQLite数据库
2.如何从另一个平台(如(iOS到Windows))打开和读取SQLite数据库
请帮帮我.
推荐答案
SQLite 提供通用的加密接口,但加密引擎的实现由个别厂商提供.
SQLite provides common interface for encryption, but the implementation of the encryption engine is delivered by individual vendors.
市场上的加密引擎不兼容,您必须使用用于加密数据库的那个.
Encryption engines on the market are not compatible, you have to use the one that was used to encrypt the database.
这篇关于C++:如何在 iOS 中已经存在的 MFC 应用程序中重用加密的 Sqlite 数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:C++:如何在 iOS 中已经存在的 MFC 应用程序中重用加
基础教程推荐
- NSString intValue 不能用于检索电话号码 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iOS4 创建后台定时器 2022-01-01
