Qt 字符串转md5
Qt 字符串转md5
#include <QCryptographicHash>
QString strToMd5(QString str)
{
QByteArray qba = QCryptographicHash::hash(str.toLatin1(), QCryptographicHash::Md5);
return qba.toHex();
}
做一条有理想的咸鱼
#include <QCryptographicHash>
QString strToMd5(QString str)
{
QByteArray qba = QCryptographicHash::hash(str.toLatin1(), QCryptographicHash::Md5);
return qba.toHex();
}