Qt Md5加密 QString Md5; QString strr = "123456789"; QByteArray encryption = QCryptographicHash::hash(strr.toLatin1(),QCryptographicHash::Md5); Md5.append(encryption.toHex()); qDebug() << Md5; //如果密文要固定记得初始化 Md5.clear(); Md5解密可以去网页上直接搜