<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[libcrypto: MD5_CTX benutzen]]></title><description><![CDATA[<p>Hallo!<br />
Ich arbeite mich gerade in die Programmierung mit libcrypto ein. Ich versuche dazu, einen String zu hashen (ich benutze libcrypto, da es sehr viele HAsh-Algorithmen unterstützt). Ich muss jedoch jetzt MD5_CTX in einen std::strin umwandeln. Ist das überhaupt möglich (und wenn ja, wie) oder sollte ich gleich eine andere Bibliothek benutzen?</p>
<p>Danke, Hans</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/194404/libcrypto-md5_ctx-benutzen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 07:02:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/194404.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 06 Oct 2007 13:10:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to libcrypto: MD5_CTX benutzen on Sat, 06 Oct 2007 13:10:47 GMT]]></title><description><![CDATA[<p>Hallo!<br />
Ich arbeite mich gerade in die Programmierung mit libcrypto ein. Ich versuche dazu, einen String zu hashen (ich benutze libcrypto, da es sehr viele HAsh-Algorithmen unterstützt). Ich muss jedoch jetzt MD5_CTX in einen std::strin umwandeln. Ist das überhaupt möglich (und wenn ja, wie) oder sollte ich gleich eine andere Bibliothek benutzen?</p>
<p>Danke, Hans</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1379134</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1379134</guid><dc:creator><![CDATA[Golem86]]></dc:creator><pubDate>Sat, 06 Oct 2007 13:10:47 GMT</pubDate></item><item><title><![CDATA[Reply to libcrypto: MD5_CTX benutzen on Sat, 06 Oct 2007 13:26:47 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">unsigned char digest[MD5_DIGEST_LENGTH];
MD5_Final(digest, &amp;md5Context);
std::string digestString(reinterpret_cast&lt;char*&gt;(digest));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1379147</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1379147</guid><dc:creator><![CDATA[???????????]]></dc:creator><pubDate>Sat, 06 Oct 2007 13:26:47 GMT</pubDate></item><item><title><![CDATA[Reply to libcrypto: MD5_CTX benutzen on Sat, 06 Oct 2007 16:45:40 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;openssl/md5.h&gt;
#include &lt;string&gt;
#include &lt;sstream&gt;

std::string getMD5HexDigest(const std::string&amp; inputString)
{
	unsigned char digest[MD5_DIGEST_LENGTH];
	MD5(reinterpret_cast&lt;const unsigned char*&gt;(inputString.c_str()), inputString.length(), digest);

	std::ostringstream oss;

	for(int i = 0; i &lt; sizeof(digest); ++i)
	{
		oss.width(2);
		oss.fill('0');
		oss &lt;&lt; std::hex &lt;&lt; static_cast&lt;int&gt;(digest[i]);
	}

	return oss.str();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1379273</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1379273</guid><dc:creator><![CDATA[???????????]]></dc:creator><pubDate>Sat, 06 Oct 2007 16:45:40 GMT</pubDate></item><item><title><![CDATA[Reply to libcrypto: MD5_CTX benutzen on Sat, 06 Oct 2007 21:45:49 GMT]]></title><description><![CDATA[<p>Vielen Dank, das hat mir sehr geholfen!</p>
<p>mfg, Hans</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1379456</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1379456</guid><dc:creator><![CDATA[Golem86]]></dc:creator><pubDate>Sat, 06 Oct 2007 21:45:49 GMT</pubDate></item></channel></rss>