QT md5 != php md5 ?
I just start to use the QCryptographicHash class for a project who has to use a database with password stored by php in md5.
for simple string like "test" the results are the same. But with string like "iiFFaa42" it's wrong.
I use Qt like that : std::string hash = QCryptographicHash::hash("test",QCryptographicHash::Md5).toHex().constData();
and php like that : md5("test");
for exemple my result for the string "iiFFaa42" are :
thanks for your time
You compare apples and oranges:
098f6bcd4621d373cade4e832627b4f6 is the MD5 of "test"
63a740d6a48b52d109c65d726af9a698 is the MD5 of "iiFFaa42"