Qt 字符串转md5
#include <QCryptographicHash>
QString strToMd5(QString str)
{
QByteArray qba = QCryptographicHash::hash(str.toLatin1(), QCryptographicHash::Md5);
return qba.toHex();
}
咸鱼DoYoung |
|
||
做一条有理想的咸鱼 |
![]() |
|
Copyright © 2024 咸鱼Doyoung
Powered by .NET 8.0 on Kubernetes |