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

查看:194
本文介绍了C ++:如何重用加密的Sqlite数据库在已经在iOS中的MFC应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个项目的中间,我要重用 SQLite 数据库 iOS code> MFC \C ++ 应用程序。



iOS 数据库使用'sqlite3_key()'加密,并且使用 SQLCipher 进行数据库处理。





我使用 SQLiteEncrypt 用于数据库处理,借助



但是当我试图对数据库执行任何语句时,它会抛出异常 File已加密或不是数据库



我没有收到任何潜在客户。

$



我知道它的以下问题的重复,但问题是无效,我无法从该问题得到任何答案。



1. 如何使用SQLite数据库从一个平台(iOS)到另一个(Windows)



2. 如何从另一个平台(iOS到Windows)打开和读取SQLite数据库



请帮助我

解决方案

SQLite提供了加密的通用接口,但是加密引擎的实现是由单个供应商提供的。 p>

市场上的加密引擎不兼容,您必须使用用于加密数据库的加密引擎。


I am in the middle of one project where I want to reuse SQLite database of iOS application in my MFC\C++ application.

The iOS database is encrypted using 'sqlite3_key()' and it is using SQLCipher for database handling.

And

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 .

I not getting any lead on this.

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.How to use SQLite database from one platform(iOS) to another(Windows)

2.How to open and read SQLite database from another platform like (iOS to Windows)

Please Help me out on this.

解决方案

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 ++:如何重用加密的Sqlite数据库在已经在iOS中的MFC应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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