指导我加密文件 [英] guide me for encrypt files
问题描述
大家好吧
i之前问过这个但是现在我的观点有点不同了
在qt我想用套接字程序发送一些文件
i想要使用公钥和私钥......但我不知道这项工作是怎么回事现在我为b / b
hi everyone
i ask this before but now my point is a little diffrent
in qt i wanna send with a socket program some files
i wanna use public keys and private keys...but i dont know how this work
now i fount a sample for
#include <qcryptographichash>
crypto(Q_UINT64_C(0x0c2ad4a4acb9f053)); //some random number
QString testString("sample");
QString result = crypto.encryptToString(testString);
QString decrypted = crypto.decryptToString(result);
qDebug() << testString << endl<< result << endl << decrypted;
我的问题是我可以用这个来表达我的想法吗?
意味着这是安全的方式吗?
似乎哈希没有加密???
发送文件在那里我使用qbytearray为此我认为这种方式很好,但我不知道是否安全?
以及你认为如果你可以帮助我如何使用它的其他事情
谢谢
and my question is can i use this for my idea??
mean is this safe way??
it seems hash that is not encrypting???
for send files in there i use qbytearray and for this i think this way is good but i dont know is safe or not??
and about other things you think if you can help me how i use this
thank you
推荐答案
有一篇详细的文章可以在这个网站上找到
经典加密技术 [ ^ ]
There is a detailed article which can be found here on this same website
Classical Encryption Techniques[^]
这篇关于指导我加密文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!