C++:如何在 iOS 中已经存在的 MFC 应用程序中重用加密的 Sqlite 数据库 [英] C++: How to reuse Encrypted Sqlite database in MFC application which is already in iOS

查看:23
本文介绍了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.

还有

我正在使用 SQLiteEncryptCppSQLite3 包装器.

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 数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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