Тема 19 Группа 241-351
|
Тема 19: Реализация алгоритмов
Группа: 241-351
```cpp include <QCryptographicHash> include <QDebug>
QString md5Hash(const QString& password) { QCryptographicHash hash(QCryptographicHash::Md5); hash.addData(password.toUtf8()); return QString(hash.result().toHex()); }
int main() { QString password = "securePassword123"; qDebug() << "MD5 Hash:" << md5Hash(password); return 0; }