<?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[Verschlüsselung von Dateien]]></title><description><![CDATA[<p>Hallo !</p>
<p>Suche eine kleine, einfach zu verwendende Bibliothek für mein C++ Programm zum Ver- und Entschlüsseln von Dateien.</p>
<p>Folgende hab ich mir schon angesehen:</p>
<p>Crypto++: Zu groß bzw. kein Tutorial gefunden wie ich eine Datei verschlüsseln kann</p>
<p>KeeCryptLib: Einfach und leicht zu einbinden, aber liefert bei mir einen Speicherfehler -&gt; wäre mein Favorit gewesen aber bekommen den Fehler leider nicht weg !</p>
<p>(Link: <a href="http://www.dominik-reichl.de/opensource.shtml#keecryptlib" rel="nofollow">http://www.dominik-reichl.de/opensource.shtml#keecryptlib</a>)</p>
<pre><code class="language-cpp">dw = lpKcEncryptFile(TRUE, &quot;test.xml&quot;, &quot;test.xml.enc&quot;, &quot;TheKey&quot;);
</code></pre>
<p>Kompiliert normal aber in dieser Zeile schmeißt es ihn raus !</p>
<p>Was wäre nun zu empfehlen und wo finde ich auch Tutorials bzw Beispielcode dazu !?<br />
(muss nicht unknackbar sein sondern einen rudimentären Schutz bieten)</p>
<p>Danke für die Antworten !</p>
<p>mfg leon22</p>
<p>PS: Verwende Visual Studio 2005 unter Windows 2000</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/217188/verschlüsselung-von-dateien</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 21:06:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/217188.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Jul 2008 09:25:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Verschlüsselung von Dateien on Fri, 04 Jul 2008 09:25:28 GMT]]></title><description><![CDATA[<p>Hallo !</p>
<p>Suche eine kleine, einfach zu verwendende Bibliothek für mein C++ Programm zum Ver- und Entschlüsseln von Dateien.</p>
<p>Folgende hab ich mir schon angesehen:</p>
<p>Crypto++: Zu groß bzw. kein Tutorial gefunden wie ich eine Datei verschlüsseln kann</p>
<p>KeeCryptLib: Einfach und leicht zu einbinden, aber liefert bei mir einen Speicherfehler -&gt; wäre mein Favorit gewesen aber bekommen den Fehler leider nicht weg !</p>
<p>(Link: <a href="http://www.dominik-reichl.de/opensource.shtml#keecryptlib" rel="nofollow">http://www.dominik-reichl.de/opensource.shtml#keecryptlib</a>)</p>
<pre><code class="language-cpp">dw = lpKcEncryptFile(TRUE, &quot;test.xml&quot;, &quot;test.xml.enc&quot;, &quot;TheKey&quot;);
</code></pre>
<p>Kompiliert normal aber in dieser Zeile schmeißt es ihn raus !</p>
<p>Was wäre nun zu empfehlen und wo finde ich auch Tutorials bzw Beispielcode dazu !?<br />
(muss nicht unknackbar sein sondern einen rudimentären Schutz bieten)</p>
<p>Danke für die Antworten !</p>
<p>mfg leon22</p>
<p>PS: Verwende Visual Studio 2005 unter Windows 2000</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540871</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540871</guid><dc:creator><![CDATA[leon22]]></dc:creator><pubDate>Fri, 04 Jul 2008 09:25:28 GMT</pubDate></item><item><title><![CDATA[Reply to Verschlüsselung von Dateien on Fri, 04 Jul 2008 09:32:32 GMT]]></title><description><![CDATA[<p>Hier zwei Seiten für Crypto++<br />
<a href="http://www.codeproject.com/KB/tips/CryptoPPIntegration.aspx" rel="nofollow">http://www.codeproject.com/KB/tips/CryptoPPIntegration.aspx</a><br />
<a href="http://69.10.233.10/KB/cpp/RsaSignatureAppendix.aspx" rel="nofollow">http://69.10.233.10/KB/cpp/RsaSignatureAppendix.aspx</a></p>
<p>Edit: mit google findet man schon noch Bsp.</p>
<p>Simon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540874</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540874</guid><dc:creator><![CDATA[simon.gysi]]></dc:creator><pubDate>Fri, 04 Jul 2008 09:32:32 GMT</pubDate></item><item><title><![CDATA[Reply to Verschlüsselung von Dateien on Fri, 04 Jul 2008 09:32:09 GMT]]></title><description><![CDATA[<blockquote>
<p>Kompiliert normal aber in dieser Zeile schmeißt es ihn raus !</p>
</blockquote>
<p>Was heisst das? Runtime Error, Linker Error? Exceptions?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540876</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540876</guid><dc:creator><![CDATA[simon.gysi]]></dc:creator><pubDate>Fri, 04 Jul 2008 09:32:09 GMT</pubDate></item><item><title><![CDATA[Reply to Verschlüsselung von Dateien on Fri, 04 Jul 2008 09:41:16 GMT]]></title><description><![CDATA[<p>Fehler:</p>
<p>Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540878</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540878</guid><dc:creator><![CDATA[leon22]]></dc:creator><pubDate>Fri, 04 Jul 2008 09:41:16 GMT</pubDate></item><item><title><![CDATA[Reply to Verschlüsselung von Dateien on Fri, 04 Jul 2008 10:02:33 GMT]]></title><description><![CDATA[<p>Anscheinend hab ich mit dieser conversation Probleme:</p>
<p>Methoden Parameter</p>
<pre><code class="language-cpp">void ScrambleFile::EncryptXmlFile(string &amp;input_filename, string &amp;output_filename)
</code></pre>
<p>und dann diese Zeile</p>
<pre><code class="language-cpp">dw = lpKcEncryptFile(TRUE, input_filename.c_str(), output_filename.c_str(), &quot;TheKey&quot;);
</code></pre>
<p>Danke und mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540894</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540894</guid><dc:creator><![CDATA[leon22]]></dc:creator><pubDate>Fri, 04 Jul 2008 10:02:33 GMT</pubDate></item><item><title><![CDATA[Reply to Verschlüsselung von Dateien on Fri, 04 Jul 2008 10:26:09 GMT]]></title><description><![CDATA[<p>Zeige mal mehr Code.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540903</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540903</guid><dc:creator><![CDATA[simon.gysi]]></dc:creator><pubDate>Fri, 04 Jul 2008 10:26:09 GMT</pubDate></item><item><title><![CDATA[Reply to Verschlüsselung von Dateien on Fri, 04 Jul 2008 11:22:46 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &quot;ScrambleFile.h&quot;

#define KCF_NODECL

HINSTANCE hLib;
LPKCENCRYPTFILE lpKcEncryptFile;
LPKCSELFTEST lpKcSelfTest;
DWORD dw;

ScrambleFile::ScrambleFile(void)
{
}

ScrambleFile::~ScrambleFile(void)
{
}

void ScrambleFile::EncryptXmlFile(string &amp;input_filename, string &amp;output_filename)
{
	hLib = LoadLibrary(&quot;H:/Projekt/source/MP300_TestSuite/debug/KeeCryptLib.dll&quot;);
	if(hLib == NULL) cout &lt;&lt; &quot;Error: Cannot load KeeCrypt.dll library ! &quot; &lt;&lt; endl;

	lpKcEncryptFile = (LPKCENCRYPTFILE)GetProcAddress(hLib, &quot;KcEncryptFile&quot;);	

	dw = lpKcEncryptFile(TRUE, input_filename.c_str(), output_filename.c_str(), &quot;TheKey&quot;);

	cout &lt;&lt; &quot;ScrambleFile Method &quot; &lt;&lt; input_filename &lt;&lt; &quot; &quot; &lt;&lt; output_filename &lt;&lt; endl;

	FreeLibrary(hLib); 
	hLib = NULL;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1540939</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540939</guid><dc:creator><![CDATA[leon22]]></dc:creator><pubDate>Fri, 04 Jul 2008 11:22:46 GMT</pubDate></item><item><title><![CDATA[Reply to Verschlüsselung von Dateien on Fri, 04 Jul 2008 11:37:06 GMT]]></title><description><![CDATA[<p>Es müsste allerdings ein dll Fehler sein (hab aber die dll vorher problemlos im eigenen VS2005 kompiliert) !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540946</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540946</guid><dc:creator><![CDATA[leon22]]></dc:creator><pubDate>Fri, 04 Jul 2008 11:37:06 GMT</pubDate></item><item><title><![CDATA[Reply to Verschlüsselung von Dateien on Fri, 04 Jul 2008 11:45:36 GMT]]></title><description><![CDATA[<p>Hast Du LPKCENCRYPTFILE selbst definiert?<br />
Wie ist er definiert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540953</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540953</guid><dc:creator><![CDATA[simon.gysi]]></dc:creator><pubDate>Fri, 04 Jul 2008 11:45:36 GMT</pubDate></item><item><title><![CDATA[Reply to Verschlüsselung von Dateien on Fri, 04 Jul 2008 11:52:49 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">typedef DWORD(WINAPI *LPKCENCRYPTFILE)(BOOL bEncrypt, LPCTSTR lpInFile, LPCTSTR lpOutFile, LPCTSTR lpPassword);
typedef DWORD(WINAPI *LPKCSELFTEST)();
</code></pre>
<p>Wurde in der keecryptlib.h definiert (in ScrambleFile.h eingebunden)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540963</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540963</guid><dc:creator><![CDATA[leon22]]></dc:creator><pubDate>Fri, 04 Jul 2008 11:52:49 GMT</pubDate></item><item><title><![CDATA[Reply to Verschlüsselung von Dateien on Fri, 04 Jul 2008 12:32:18 GMT]]></title><description><![CDATA[<p>Die 2 Zeilen</p>
<pre><code class="language-cpp">typedef DWORD(WINAPI *LPKCENCRYPTFILE)(BOOL bEncrypt, LPCTSTR lpInFile, LPCTSTR lpOutFile, LPCTSTR lpPassword);
typedef DWORD(WINAPI *LPKCSELFTEST)();
</code></pre>
<p>mussten laut windef.h in</p>
<pre><code class="language-cpp">typedef DWORD(WINAPIV *LPKCENCRYPTFILE)(BOOL bEncrypt, LPCTSTR lpInFile, LPCTSTR lpOutFile, LPCTSTR lpPassword);
typedef DWORD(WINAPIV *LPKCSELFTEST)();
</code></pre>
<p>geändert werden.</p>
<p>Auszug:</p>
<pre><code class="language-cpp">#define CALLBACK    __stdcall
#define WINAPI      __stdcall
#define WINAPIV     __cdecl
</code></pre>
<p>Blöder Fehler - Danke trotzdem für die Hilfe !</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540989</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540989</guid><dc:creator><![CDATA[leon22]]></dc:creator><pubDate>Fri, 04 Jul 2008 12:32:18 GMT</pubDate></item><item><title><![CDATA[Reply to Verschlüsselung von Dateien on Fri, 04 Jul 2008 14:12:06 GMT]]></title><description><![CDATA[<p>Hallo !</p>
<p>Ausgehend vom vorherigen Verlauf möchte ich nun die entschlüsselte Datei nicht aufs Dateisystem schreiben sondern in einen Datenstrom (filestream) !</p>
<p>hier wird entschlüsselt:</p>
<pre><code class="language-cpp">dw = lpKcEncryptFile(FALSE, input_filename.c_str(), output_filename.c_str(), encKey.c_str());
</code></pre>
<p>output_filename.c_str() wäre der Pfad zur Datei die dann entschlüsselt geschrieben wird -&gt; möchte ich aber wie gesagt in ein Objekt kapseln ! nur wie ?</p>
<p>Vielen Dank für Antworten !</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1541062</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541062</guid><dc:creator><![CDATA[leon22]]></dc:creator><pubDate>Fri, 04 Jul 2008 14:12:06 GMT</pubDate></item></channel></rss>