[Qt-interest] why my MD5 output is gibberish

Meir Yanovich meiry242 at gmail.com
Tue Apr 13 12:24:05 CEST 2010


Hello all
im trying to encode string with MD5 but when i convert the output to QString

the output is gibberish
here is my code:

QString toAPISignature =
                "api_key="
                +  API_KEY
                + "call_id=" + strCallid
                + "format=XML"
                + "method=Users.getLoggedInUser"
                + "session_key="+ fbSessionKey
                + "v=1.0"+m_fbSecretKey;

QByteArray hashedApiData= QCryptographicHash::hash(toAPISignature.toAscii(),
          QCryptographicHash::Md5);
QString APIMD5Signature(hashedApiData);

The output of APIMD5Signature is :
N{?¬???¬@?±B???????¶

dosn't it be number ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100413/0716c265/attachment.html 


More information about the Qt-interest-old mailing list