(转载)http://www.cppblog.com/biao/archive/2011/12/22/162572.html
#include<QCryptographicHash>
#include<QDebug>
int main(intargc,char*argv[]){
qDebug()<<QCryptographicHash::hash("Biao",QCryptographicHash::Md5).toHex().constData(); return 0;}