<?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üsslungsscript]]></title><description><![CDATA[<p>Könntet ihr mir bei diesem Code helfen? Bitte die fertige Version davon hinschreiben wenns geht</p>
<p>danke im vorraus<br />
Phranky</p>
<pre><code class="language-cpp">#include &lt;iostream.h&gt; 
#include &lt;fstream.h&gt; 
#include &lt;conio.h&gt; 

void verschluesselung(); 
void entschluesselung(); 

int main() //stan****-Auswahl Menü 
{ 
    char auswahl; 
    while (auswahl != 'b') 
    {     
        system(&quot;cls&quot;); 
        cout &lt;&lt; &quot;                 -Verschluesselungsprogramm-&quot; &lt;&lt; &quot;\n\n\n\n\n&quot;; 
        cout &lt;&lt; &quot;  [V] - Datei verschluesseln&quot; &lt;&lt; &quot;\n&quot;; 
        cout &lt;&lt; &quot;  [E] - Datei entschluesseln&quot; &lt;&lt; &quot;\n&quot;; 
        cout &lt;&lt; &quot;  [B] - Beenden&quot; &lt;&lt; &quot;\n&quot;; 

        auswahl=getch(); 

        switch (auswahl) 
        { 
            case 'v' : verschluesselung();  break; 
             case 'e' : entschluesselung();  break; 
        } 
    } 
    return 0; 
} 

void verschluesselung() //Verschluesselung der Datei 
{ 
    char original, bild, pfad[256]; 
    int asci; 

    system(&quot;cls&quot;); 

    cout &lt;&lt; &quot;Pfad der zu verschluesselnden Datei eingeben: &quot;; 
    cin.getline(pfad,256); 

    ifstream datei_l (pfad); //zum Lesen öffnen   
    ofstream datei_s (pfad,ios::in); //zum Schreiben öffnen 
    datei_l.seekg(0); //hier die Anfangsposition einsetzen 
    datei_s.seekp(0); //hier Anfangs-Schreibposition einsetzen 

    datei_l.get(original); //erstes Zeichen holen   

    while ( datei_l.good()) 
    {         
        asci = original; 
        if (asci &gt; 128) asci = 256 + asci; 
        asci += 13; 
        bild = asci; 
        datei_s &lt;&lt; bild; 
        datei_l.get(original); //Zeichen holen 
    } 
    datei_l.close(); 
    datei_s.close(); 
    getch(); 
} 

void entschluesselung() //Entschluesselung der Datei 
{ 
    char original, bild, pfad[256]; 
    int asci; 

    system(&quot;cls&quot;); 

    cout &lt;&lt; &quot;Pfad der zu entschluesselnden Datei eingeben: &quot;; 
    cin.getline(pfad,256); 

    ifstream datei_l (pfad); //zum Lesen öffnen   
    ofstream datei_s (pfad,ios::in); //zum Schreiben öffnen 
    datei_l.seekg(0); //hier die Anfangsposition einsetzen 
    datei_s.seekp(0); //hier Anfangs-Schreibposition einsetzen 

    datei_l.get(bild); //erstes Zeichen holen   

    while ( datei_l.good()) 
    {         
        asci = bild; 
        if (asci &gt; 128) asci = 256 + asci; 
        asci -= 13; 
        original = asci; 
        datei_s &lt;&lt; original;         
        datei_l.get(bild); //Zeichen holen 
    } 
    datei_l.close(); 
    datei_s.close(); 
    getch(); 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/126405/verschlüsslungsscript</link><generator>RSS for Node</generator><lastBuildDate>Mon, 24 Aug 2026 18:53:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/126405.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Nov 2005 20:56:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to verschlüsslungsscript on Mon, 14 Nov 2005 20:56:27 GMT]]></title><description><![CDATA[<p>Könntet ihr mir bei diesem Code helfen? Bitte die fertige Version davon hinschreiben wenns geht</p>
<p>danke im vorraus<br />
Phranky</p>
<pre><code class="language-cpp">#include &lt;iostream.h&gt; 
#include &lt;fstream.h&gt; 
#include &lt;conio.h&gt; 

void verschluesselung(); 
void entschluesselung(); 

int main() //stan****-Auswahl Menü 
{ 
    char auswahl; 
    while (auswahl != 'b') 
    {     
        system(&quot;cls&quot;); 
        cout &lt;&lt; &quot;                 -Verschluesselungsprogramm-&quot; &lt;&lt; &quot;\n\n\n\n\n&quot;; 
        cout &lt;&lt; &quot;  [V] - Datei verschluesseln&quot; &lt;&lt; &quot;\n&quot;; 
        cout &lt;&lt; &quot;  [E] - Datei entschluesseln&quot; &lt;&lt; &quot;\n&quot;; 
        cout &lt;&lt; &quot;  [B] - Beenden&quot; &lt;&lt; &quot;\n&quot;; 

        auswahl=getch(); 

        switch (auswahl) 
        { 
            case 'v' : verschluesselung();  break; 
             case 'e' : entschluesselung();  break; 
        } 
    } 
    return 0; 
} 

void verschluesselung() //Verschluesselung der Datei 
{ 
    char original, bild, pfad[256]; 
    int asci; 

    system(&quot;cls&quot;); 

    cout &lt;&lt; &quot;Pfad der zu verschluesselnden Datei eingeben: &quot;; 
    cin.getline(pfad,256); 

    ifstream datei_l (pfad); //zum Lesen öffnen   
    ofstream datei_s (pfad,ios::in); //zum Schreiben öffnen 
    datei_l.seekg(0); //hier die Anfangsposition einsetzen 
    datei_s.seekp(0); //hier Anfangs-Schreibposition einsetzen 

    datei_l.get(original); //erstes Zeichen holen   

    while ( datei_l.good()) 
    {         
        asci = original; 
        if (asci &gt; 128) asci = 256 + asci; 
        asci += 13; 
        bild = asci; 
        datei_s &lt;&lt; bild; 
        datei_l.get(original); //Zeichen holen 
    } 
    datei_l.close(); 
    datei_s.close(); 
    getch(); 
} 

void entschluesselung() //Entschluesselung der Datei 
{ 
    char original, bild, pfad[256]; 
    int asci; 

    system(&quot;cls&quot;); 

    cout &lt;&lt; &quot;Pfad der zu entschluesselnden Datei eingeben: &quot;; 
    cin.getline(pfad,256); 

    ifstream datei_l (pfad); //zum Lesen öffnen   
    ofstream datei_s (pfad,ios::in); //zum Schreiben öffnen 
    datei_l.seekg(0); //hier die Anfangsposition einsetzen 
    datei_s.seekp(0); //hier Anfangs-Schreibposition einsetzen 

    datei_l.get(bild); //erstes Zeichen holen   

    while ( datei_l.good()) 
    {         
        asci = bild; 
        if (asci &gt; 128) asci = 256 + asci; 
        asci -= 13; 
        original = asci; 
        datei_s &lt;&lt; original;         
        datei_l.get(bild); //Zeichen holen 
    } 
    datei_l.close(); 
    datei_s.close(); 
    getch(); 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/917845</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/917845</guid><dc:creator><![CDATA[Phranky]]></dc:creator><pubDate>Mon, 14 Nov 2005 20:56:27 GMT</pubDate></item><item><title><![CDATA[Reply to verschlüsslungsscript on Mon, 14 Nov 2005 21:30:36 GMT]]></title><description><![CDATA[<p>wessen hausaufgaben sollen wir denn hier machen?</p>
<p>1. heißt es &lt;iostream&gt; bzw. &lt;fstream&gt;, ...<br />
2.<br />
was ist das für ein hack? suchst du zufällig nach unsigned?</p>
<pre><code class="language-cpp">if (asci &gt; 128) asci = 256 + asci;
</code></pre>
<p>3. spezifizier deine frage...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/917915</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/917915</guid><dc:creator><![CDATA[cin]]></dc:creator><pubDate>Mon, 14 Nov 2005 21:30:36 GMT</pubDate></item><item><title><![CDATA[Reply to verschlüsslungsscript on Tue, 15 Nov 2005 18:57:18 GMT]]></title><description><![CDATA[<p>wenn man den quellcode compilt, dann merkt man das wenn man eine datei verschlüsseln will, dass nichts passiert. wo liegt das problem und wie lautet der funktionsfähige quellcode</p>
]]></description><link>https://www.c-plusplus.net/forum/post/918580</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/918580</guid><dc:creator><![CDATA[Phranky]]></dc:creator><pubDate>Tue, 15 Nov 2005 18:57:18 GMT</pubDate></item><item><title><![CDATA[Reply to verschlüsslungsscript on Tue, 15 Nov 2005 20:16:58 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-125153-and-highlight-is-.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-125153-and-highlight-is-.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/918631</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/918631</guid><dc:creator><![CDATA[niemand]]></dc:creator><pubDate>Tue, 15 Nov 2005 20:16:58 GMT</pubDate></item><item><title><![CDATA[Reply to verschlüsslungsscript on Tue, 15 Nov 2005 20:26:22 GMT]]></title><description><![CDATA[<p>ja das kenn ich auch schon aber we setzt man die sachn in den quellcode um?</p>
<p>ich blick da irgendwie net durch...</p>
<p>danke im vorraus<br />
phranky</p>
]]></description><link>https://www.c-plusplus.net/forum/post/918639</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/918639</guid><dc:creator><![CDATA[Phranky]]></dc:creator><pubDate>Tue, 15 Nov 2005 20:26:22 GMT</pubDate></item><item><title><![CDATA[Reply to verschlüsslungsscript on Tue, 15 Nov 2005 21:10:45 GMT]]></title><description><![CDATA[<p>Also ich weiß voll nicht was ihr habt<br />
funktioniert doch<br />
oder habe ich die logig der Frage nicht verstanden</p>
]]></description><link>https://www.c-plusplus.net/forum/post/918672</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/918672</guid><dc:creator><![CDATA[Ace87]]></dc:creator><pubDate>Tue, 15 Nov 2005 21:10:45 GMT</pubDate></item><item><title><![CDATA[Reply to verschlüsslungsscript on Wed, 16 Nov 2005 13:10:24 GMT]]></title><description><![CDATA[<p>das programm soll eine datei (txt) verschlüsseln...<br />
dies wird aber nicht durchgeführt..<br />
warum?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/919117</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/919117</guid><dc:creator><![CDATA[phranky]]></dc:creator><pubDate>Wed, 16 Nov 2005 13:10:24 GMT</pubDate></item></channel></rss>