Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey all,
please i am having an IMEI and want to hash it as MD5
I am using qt
please help
Thanks in Advance.
Posted

Well have you looked at QCryptographicHash::hash[^]

QString encodedPass = QString(QCryptographicHash::hash(("my string"),QCryptographicHash::Md5));


Remember Qt returns binary, if you need it in Hex format use QByteArray::toHex.[^]
 
Share this answer
 
In Qt 4.3 or later you can use the QCryptographicHash[^] class.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900