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 应用程序中重用加


- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- Android - 拆分 Drawable 2022-01-01