咸鱼DoYoung  
做一条有理想的咸鱼

Qt 字符串转md5

#include <QCryptographicHash>

QString strToMd5(QString str)
{
	QByteArray qba = QCryptographicHash::hash(str.toLatin1(), QCryptographicHash::Md5);
	return qba.toHex();
}
posted on 2021-07-02 11:29  咸鱼Doyoung  阅读(189)  评论(0编辑  收藏  举报