[Qt-interest] why my MD5 output is gibberish

Meir Yanovich meiry242 at gmail.com
Tue Apr 13 12:30:39 CEST 2010


this is the gibberish:

"N{žìªì@ñB›ÁÊʶ‚"

On Tue, Apr 13, 2010 at 1:24 PM, Meir Yanovich <meiry242 at gmail.com> wrote:

> 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/a95109cd/attachment.html 


More information about the Qt-interest-old mailing list