mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
rename0
This commit is contained in:
14
DataBaseInterface/hashtools.cpp
Normal file
14
DataBaseInterface/hashtools.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "hashtools.h"
|
||||
#include <QCryptographicHash>
|
||||
|
||||
HashTools::HashTools()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QString HashTools::hashingMD5string(QString str)
|
||||
{// Вычисление MD5 хэша строки
|
||||
|
||||
QByteArray md5Hash = QCryptographicHash::hash(str.toUtf8(), QCryptographicHash::Md5).toHex();
|
||||
return QString(md5Hash);
|
||||
}
|
||||
Reference in New Issue
Block a user