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 OriginalGriff 330
1 Sergey Alexandrovich Kryukov 279
2 BillWoodruff 245
3 Afzaal Ahmad Zeeshan 215
4 CPallini 205
0 OriginalGriff 5,635
1 DamithSL 4,496
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web01 | 2.8.141216.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