[Qt-interest] QCryptographicHash and md5sum
Boudewijn Rempt
boud at valdyas.org
Fri Jan 23 14:28:54 CET 2009
If I do an md5sum on a file, I get a certain result, say
24a9df02e3fe1e4782ddb97d603afd2e, but if I download that file
to a temporary file and apply the following code:
QByteArray md5 = QCryptographicHash::hash(temporaryFile->readAll(), QCryptographicHash::Md5);
Then md5.toHex() gives me a quite different result.
Which I didn't expect... What did I miss?
Boudewijn
More information about the Qt-interest-old
mailing list