#include "mainwindow.h"
#include <QApplication>
#include <QDebug>
#include <QString>
#include <QCryptographicHash>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
QString pwd="alibaba";
QString md5;
QByteArray ba,bb;
QCryptographicHash md(QCryptographicHash::Md5);
ba.append(pwd);
md.addData(ba);
bb=md.result();
md5.append(bb.toHex());
qDebug()<<md5;
return a.exec();
}