How to compile wxsqlite3 and sqlite to get encrypt

2019-02-20 12:17发布

问题:

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.

回答1:

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.



回答2:

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.