Introduction:
QCA: QT cryptographic architecture is a very good class library for encryption and decryption on the qt platform. However, there are still few documents and blogs about QCA in China, if you are not familiar with QT and Unix development, you may encounter some problems when using this open-source class library (as you know, there are still many problems with version matching and bug control of open-source products among different class libraries)
This class library is developed based on the plug-in structure. Different encryption methods use different plug-ins, and each plug-in needs to be compiled separately, which is troublesome, the compilation of class libraries and plug-ins is omitted here. The compiled version is provided directly. The class library uses some OpenSSL functions. Therefore, you need to download OpenSSL before use. We recommend that you download it at http://www.slproweb.com/products/win32openssl.html( Win32 OpenSSL v1.0.0g, 16 Mb)
Download:
Class Library and plug-in: Copy crypto to: QT installation directory \ Desktop \ QT \ 4.7.4 \ mingw \ plugins \ crypto
Qt feautre: Copy feature to: QT installation directory \ Desktop \ QT \ 4.7.4 \ mingw \ mkspecs \ features
When using a class library, you must:
1. Add "Config + = crypto" to your QT project file pro"
2. Copy ssleay32.dll and libeay32.dll under "OpenSSL-Win32 \ bin \" to the debug or release directory of your project
3. Copy the "qca-2.0.3 \ Lib" directory with the "qca-ossl-2.0.0-beta3 \ Lib" directory qca2.dll and qca-ossl2.dll to your project's debug or release directory
4. Use the statement QCA: initializer init to initialize QCA before using QCA in the program.
Note:
If you have other questions after performing the preceding steps due to environmental issues, please leave a message
Refer:
- Qt cryptographic architecture (QCA)
Http://delta.affinix.com/qca/
- Using libraries: QCA (QT cryptographic Architecture)
Http://www.essentialunix.org/index.php? Option = com_content & view = article & id = 48: qcatutorial & catid = 34: qttutorials & Itemid = 53
Http://www.openssl.org/