Click here to Skip to main content
Rate this: bad
good
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 20:42pm
rpm3d520

1 solution

Rate this: bad
good
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[^]
  Permalink  
Comments
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 BillWoodruff 260
1 Mathew Soji 244
2 Afzaal Ahmad Zeeshan 232
3 OriginalGriff 231
4 Maciej Los 230
0 OriginalGriff 6,369
1 Sergey Alexandrovich Kryukov 5,973
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,045


Advertise | Privacy | Mobile
Web01 | 2.8.1411019.1 | Last Updated 9 Dec 2012
Copyright © CodeProject, 1999-2014
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