title: Any c++ library to work with Md5 using class string?
body: <p>Is there any c++ standard library to work with Md5 hashing (and other hashes, possibly) by using the c++ <code>std::string</code> instead of <code>signed\unsigned char*</code>?. I found no implementation of this in <code>openssl/md5.h</code> since its function MD5 has this header: <code>unsigned char *MD5(const unsigned char *d, unsigned long n, unsigned char *md);</code></p>
  
  <p>I'm asking this because I'm trying to set a <code>QLabel lbResult</code>'s text to the result of the digest of the input of a string (coming from QString&amp; arg1). <br/></p>
  
  <pre><code>MD5((const unsigned char *) arg1.toStdString().c_str(),32,cryptResult);
  ui-&gt;lbResult-&gt;setText(getStringFromUnsignedChar(cryptResult));
  </code></pre>
  
  <p>I had to build this <code>getStringFromUnsignedChar</code> which returns a <code>QString</code> object from the result but all these casting and this function could be avoided if I had something line <code>string MD5(string s);</code>. Thanks in advance.</p>