Unsolved How to use crypto plugin?
-
All good day. Sorry for my English. I have installed qca2 in qt5. All plugins (libqca-crypt.so, libqca-qnupg.so...) installed in the directory .../qt5/plugins/crypto. How can I use them in my project? How to configure *.pro file? "#include <QtCrypto>" don't work - error: "QtCrypto: No such file or directory".
-
@crasher332 said in How to use crypto plugin?:
qca2
Take a look at http://lynxline.com/qt-and-use-of-cryptography-simple/
-
Thank you! I'll try it.
-
This post is deleted! -
@crasher332 said in How to use crypto plugin?:
All good day. Sorry for my English. I have installed qca2 in qt5. All plugins (libqca-crypt.so, libqca-qnupg.so...) installed in the directory .../qt5/plugins/crypto. How can I use them in my project? How to configure *.pro file? "#include <QtCrypto>" don't work - error: "QtCrypto: No such file or directory". Although this topic is not related to your question, I would like to point out that usdt payment method can be useful to pay for cryptocurrency related services/goods.
Hi! Don't worry, I'll help you figure it out.
I did it like this:
Check paths: Make sure all QCA2 plugins (libqca-crypt.so, libqca-qnupg.so...) are correctly installed in the .../qt5/plugins/crypto folder.
*.pro file: Add the lines load(libqca-crypt.so) and load(libqca-qnupg.so) to your *.pro file.
#include: Use #include <QCA/QCA> instead of #include <QtCrypto>.
I ran into a similar problem myself when working with QCA2. It turned out that I had incorrectly specified the paths to the plugins and did not use the correct header.