Click here to Skip to main content
11,709,366 members (64,680 online)
Rate this: bad
Please Sign up or sign in to vote.
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;
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 8-Dec-12 19:42pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

Classical Encryption Techniques[^]
rpm3d at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 580
1 OriginalGriff 250
2 Maciej Los 225
3 Peter Leow 219
4 Mika Wendelius 160
0 OriginalGriff 9,428
1 Sergey Alexandrovich Kryukov 9,027
2 CPallini 5,189
3 Maciej Los 4,991
4 Mika Wendelius 3,856

Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 9 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100