Commit f460064e authored by Dmitry Kazakov's avatar Dmitry Kazakov

Don't load entire file to RAM when computing MD5 hash sum

parent dc153005
......@@ -39,8 +39,9 @@ QByteArray KoMD5Generator::generateHash(const QString &filename)
QFile f(filename);
if (f.exists() && {
QByteArray ba = f.readAll();
result = generateHash(ba);
QCryptographicHash md5(QCryptographicHash::Md5);
result = md5.result();
return result;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment