How to Use QT encryption and decryption class library QCA (QT cryptographic Architecture)

Source: Internet
Author: User

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

  • OpenSSL Project

Http://www.openssl.org/

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.