如何将Qt字符串转换成MD5值?

摘要:Qt 字符串转md5 #include <QCryptographicHash> QString strToMd5(QString str) { QByteArray qba = QCryptog
Qt 字符串转md5 #include <QCryptographicHash> QString strToMd5(QString str) { QByteArray qba = QCryptographicHash::hash(str.toLatin1(), QCryptographicHash::Md5); return qba.toHex(); }