When working with Qt4 and Encryption the best thing to use is definitely Qt Cryptography Architecture (QCA). For Linux, setting up Qt4 and QCA in a development environment is not very complicated.

All you have to do is apt-get a few libraries, the compiler suite, and modify your qmake project file. We aren’t doing any GUI work here so I’ve left out the UI Qt4 packages. Doing an apt-cache search libqt4* will show you a list of everything this is available.

Starting off with the apt-get:

Ubuntu 11.x, Ubuntu 10.x, Ubuntu 9.x:
sudo apt-get install build-essential qt4-dev-tools libqt4-dev libqt4-dev libqt4-core libqca2 libqca2-dev libqca2-plugin-ossl libqca2-plugin-gnupg

In your QMake .pro file simply add:

CONFIG += crypto

You’re all set for using the QCA libraries in your app!

Sources & Links:
Qt Cryptography Architecture
Ubuntu GNU/Linux
Nokia Qt4 Toolkit

 Leave a Reply

(required)

(required)


*

 

Bad Behavior has blocked 40 access attempts in the last 7 days.