lyuts
5th November 2008, 15:43
Hi, guys. I need you help.
I'm trying to obtain a sha1 hash. I use QCryptographicHash for this.
QCryptographicHash hash(QCryptographicHash::Sha1);
hash.addData("123", 3);
But I get something like this
"$6rJ╟)щъa4тБ(\еEY├"
instead of
"40bd001563085fc35165329ea1ff5c5ecbdbbeef".
What am I doing wrong?
Thanks.
I'm trying to obtain a sha1 hash. I use QCryptographicHash for this.
QCryptographicHash hash(QCryptographicHash::Sha1);
hash.addData("123", 3);
But I get something like this
"$6rJ╟)щъa4тБ(\еEY├"
instead of
"40bd001563085fc35165329ea1ff5c5ecbdbbeef".
What am I doing wrong?
Thanks.