gpt4 book ai didi

iphone - 在iphone中使用sqlcipher解密

转载 作者:行者123 更新时间:2023-11-29 10:59:26 28 4
gpt4 key购买 nike

好的,所以我正在研究 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.

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

谢谢

最佳答案

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

关于iphone - 在iphone中使用sqlcipher解密,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16665945/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com