如何编译wxsqlite3和sqlite以获得加密支持
我正在开发一个基于 wxWidgets 的 C++ 项目。使用wxSqlite3访问sqlite数据库,并且工作正常。但我想为数据库添加一些加密,在这里我通过 wxSqlite3 访问加密数据库时遇到问题。据我所知,sqlite默认不支持加密,但是wxSqlite3以某种方式包含了加密功能。任何有经验的人都可以分享他们的知识和实践,了解如何编译 sqlite 和 wxSqlite3 以便能够访问加密功能。提前致谢。
I'm working on a c++ project based on wxWidgets. Using wxSqlite3 for accessing sqlite database, and it is working fine. But I wanted to add some encryption for database, here I have problems with accessing encrypted db via wxSqlite3. As far as I know, sqlite doesn't support encryption by default, but wxSqlite3 somehow included encryption functionality. Could anyone who has experience, share their knowledge and practice on how to compile sqlite and wxSqlite3 in order to be able to access encryption functions. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
wxSQLite3 附带的加密扩展是开源的,并提供 AES-128 或 AES-256 加密(在编译时选择)。例如,可以在此处找到如何编译支持加密的 SQLite 的指南。
The encryption extension coming with wxSQLite3 is open source and offers AES-128 or AES-256 encryption (to be chosen at compile time). Guidance how to compile SQLite with encryption support can be found for example here.
sqlite 的作者出售一个包含加密功能的软件包。他是一位非常好的绅士,我鼓励您购买一本来支持他。我与该项目没有任何关系。
The author of sqlite sells a package including encryption. He's a very nice gentleman and I encourage you to support him by buying a copy. I am not associated with that project in any way.