Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
C++
#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;

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
Posted

1 solution

There is a detailed article which can be found here on this same website

Classical Encryption Techniques[^]
 
Share this answer
 
Comments
rpm3d 9-Dec-12 6:17am    
thankyou that was helpfule but still i loocking in qt

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900