17 #include <QCryptographicHash>
34 return ok ? arr : QByteArray();
56 return fi.exists() && fi.isReadable();
64 QCryptographicHash md5Hash(QCryptographicHash::Md5);
66 if (
file.open(QIODevice::ReadOnly | QIODevice::Unbuffered)) {
69 md5Hash.addData(
file.read(10485760));
72 return md5Hash.result();
84 return QByteArray::fromHex(
str.toUtf8());
92 return QRegExp(
"[0-9a-z]*").exactMatch(
sum.toLower());
98 return sum.simplified().toLower();