I have the code to generate hash like below:
Code: Select all
var str = "fooBar";
var hash = QCryptographicHash.hash(new QByteArray(str), QCryptographicHash.Md5).toHex();
print(hash);
So it's bug from qt5?
Moderator: andrew
Code: Select all
var str = "fooBar";
var hash = QCryptographicHash.hash(new QByteArray(str), QCryptographicHash.Md5).toHex();
print(hash);
Code: Select all
var str = "fooBar";
var ba = new QByteArray();
ba.append(str);
var hash = QCryptographicHash.hash(ba, QCryptographicHash.Md5).toHex();
print(hash);