littlesu |
开发经验 | 2013-01-15
C++
QFile
QString Hashes::MD5(QFile *fileStream)
{
QString md5;
QByteArray hashData = QCryptographicHash::hash(fileStream->readAll(), QCryptographicHash::Md5);
md5.append(hashData.toHex());
fileStream->close();
return md5;
}
1.
#in...
[阅读全文]