how to deal with encrypted sqlite database in iPhone?

烂漫一生 提交于 2020-01-16 09:05:05

问题


I have an encrypted version of an sqlite database and also I have the KEY but honestly I have no idea about using it or how to get the data from the encrypted database?

I guess the solution somewhere in the open function?

 if(sqlite3_open([_dbPath UTF8String],&database)==SQLITE_OK);

Can anybody help me??


回答1:


The core SQLite database implementation does not itself provide encryption support. There does however exist a number of extensions for adding encryption to SQLite. Some of these encrypt the entire database file while some other only encrypt the contents of the tables.

These extensions are for the most part not compatible, so you will most likely have to use the same extension on the iPhone as the one used on C#. And if you're lucky that extension is also supported on iOS.



来源:https://stackoverflow.com/questions/7820226/how-to-deal-with-encrypted-sqlite-database-in-iphone

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!