PDA

View Full Version : Qt4.8 support for AES Encryption and SHA256 Hash



sattu
7th August 2012, 09:24
Hi Everyone,

I was looking for the following OpenSSL methods in Qt4.8.x but I didn't find any:-

1) AES-256 symmetric algorithm
2) SHA256 Hash

Regarding SHA256 Hash, I found that it is present in Qt5.0, but I am using Qt4.8. So, are any patches available for it regarding Qt4.8?

I would be really grateful if someone would help in this regard.

-sattu

spirit
7th August 2012, 10:05
Take a look at this Qt based wrapper on OpenSSL (http://delta.affinix.com/qca/).

sattu
7th August 2012, 17:17
Take a look at this Qt based wrapper on OpenSSL (http://delta.affinix.com/qca/).

Thanks a lot Spirit. The package does have all the support that I require. The only thing is that I am really poor at porting external libraries to my existing Qt Package, I mean I always find it extremely confusing to recompile my Existing SDK with some new libraries. If you can advice me regarding that I would be really grateful.

spirit
7th August 2012, 17:56
Well, all you need it's to modify you pro-file. Add necessary libs into LIBS variable and/or provide include path into INCLUDEPATH for headers files. About these variables you can read in qmake docs.

sattu
8th August 2012, 09:16
Ok Spirit,

Actually they haven't mentioned any steps regarding the generation of lib file. Anyways I will try reading the provided documents again as somewhere they should have mentioned all the steps regarding the generation of the lib file for the QCA namespace. I will get back to you if i face difficulty in using it.

-thanks
sattu