【问题标题】:decryption using sqlcipher in iphone在 iphone 中使用 sqlcipher 解密
【发布时间】:2013-05-21 08:59:26
【问题描述】:

好的,所以我正在研究 sqlcipher 并准备关于它的文档。到目前为止的研究表明,如何加密数据库,我找不到如何解密数据库。像这样我还有几个问题。 我发现你不能对加密的数据库进行coredata操作。所以

1) Can i run a sql query on encrypted database.
2) so if i have to perform a coredata operation, so i have to decrypt the database.
3) and last but not least, how to do decryption using sqlcipher.

如果这些问题有意义,请回答。

谢谢

【问题讨论】:

标签: iphone ios core-data sqlcipher


【解决方案1】:

是的,您可以对加密的数据库执行 SQL 查询,但是在检索未加密的数据之前,需要对启用了 SQLCipher 的 SQLite 数据库中的页面进行解密。为了访问 SQLCipher 加密数据库,您需要发出 PRAGMA key 命令,或以编程方式调用 sqlite3_key。可以在here 以及邮件列表here 中找到其他文档。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-01-13
    • 1970-01-01
    • 2012-10-01
    • 1970-01-01
    • 2017-01-30
    • 2013-03-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多