<?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[brauche hilfe bei c++ password verschlüsseln]]></title><description><![CDATA[<p>hi leute,<br />
ich habe ein programm um es zu starten muss man ein passwort eingeben.<br />
doch das passwort soll zensirt werden z.b. stat geheim = ******<br />
hier der code</p>
<pre><code>#include &lt;iostream&gt;
#include&lt;windows.h&gt;
//für  die farben
#define blau    9
#define turkise 11
#define gruen   10
#define rot     4
#define gelb    14
#define grau    8
#define white   15
#define black   0
void textcolor(WORD color)           //Funktion fuer Farbe 
{ 
    SetConsoleTextAttribute(::GetStdHandle(STD_OUTPUT_HANDLE), color); 
} 
bool Fullscreen()
    {
     static bool bFullscreen = false;
      keybd_event(VK_MENU,0x38,0,0);
      keybd_event(VK_RETURN,0x1c,0,0);
      keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0);
      keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0);
     return bFullscreen = !bFullscreen;
    }
    int f,t,r,m,n,o;
    char pass3[]=&quot;yannicST&quot;;           
    char pass4[10];
    char str2[10];
    char str1[]=&quot;a4mt&quot; ;           
    char pass2[10];
    char pass1[]=&quot;gut&quot; ;

      int main()
      {
      textcolor(15); 
      printf(&quot;Enter username:\n&quot;);
      gets (pass4);
      n=strcmp (pass3, pass4);
      if(n==0)
          {
          Sleep(800);
          }
      else
          {
          textcolor(4);
          printf(&quot;!! Username is incorect !!&quot;);
          for(int o = 0; o &lt; 100000000 ; o++)
              {
               printf(&quot;\a&quot;);
               Sleep(500);
               }
          printf(&quot;!! EXIT !!&quot;);
          Sleep(900);
          return 0;
          }
      textcolor(15);
      printf(&quot;Enter password:\n&quot;);
      textcolor(0);
      gets (str2);
      r=strcmp(str1, str2);
      textcolor(15);
      if(r==0)
      {
      Sleep(1000);
      }
      else
      {
         textcolor(4);
         printf(&quot;!! Passwot is incorect !!&quot;);
         for(int f = 0; f &lt; 100000000 ; f++)
            {
            printf(&quot;\a&quot;);
            Sleep(500);
            }
         textcolor(4);
         printf(&quot;    EXIT NOW!!!&quot;);
         Sleep(900);
         return 0;
      }
      textcolor(10);
      printf(&quot;Willkommen&quot;);
      textcolor(15);
      printf(&quot;\a&quot;);
      printf(&quot; wie geht es ihnen?&quot;);
      gets (pass2);
      t=strcmp (pass1, pass2);
      if(t==0)
          {
          textcolor(10);
          printf(&quot;Das ist toll!&quot;);
          textcolor(15);
          }

      else
          {
           printf(&quot;Das ist  sehr schade&quot;);
          }
          getchar();
          }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/273879/brauche-hilfe-bei-c-password-verschlüsseln</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 22:38:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/273879.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Sep 2010 19:34:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to brauche hilfe bei c++ password verschlüsseln on Tue, 14 Sep 2010 19:34:22 GMT]]></title><description><![CDATA[<p>hi leute,<br />
ich habe ein programm um es zu starten muss man ein passwort eingeben.<br />
doch das passwort soll zensirt werden z.b. stat geheim = ******<br />
hier der code</p>
<pre><code>#include &lt;iostream&gt;
#include&lt;windows.h&gt;
//für  die farben
#define blau    9
#define turkise 11
#define gruen   10
#define rot     4
#define gelb    14
#define grau    8
#define white   15
#define black   0
void textcolor(WORD color)           //Funktion fuer Farbe 
{ 
    SetConsoleTextAttribute(::GetStdHandle(STD_OUTPUT_HANDLE), color); 
} 
bool Fullscreen()
    {
     static bool bFullscreen = false;
      keybd_event(VK_MENU,0x38,0,0);
      keybd_event(VK_RETURN,0x1c,0,0);
      keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0);
      keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0);
     return bFullscreen = !bFullscreen;
    }
    int f,t,r,m,n,o;
    char pass3[]=&quot;yannicST&quot;;           
    char pass4[10];
    char str2[10];
    char str1[]=&quot;a4mt&quot; ;           
    char pass2[10];
    char pass1[]=&quot;gut&quot; ;

      int main()
      {
      textcolor(15); 
      printf(&quot;Enter username:\n&quot;);
      gets (pass4);
      n=strcmp (pass3, pass4);
      if(n==0)
          {
          Sleep(800);
          }
      else
          {
          textcolor(4);
          printf(&quot;!! Username is incorect !!&quot;);
          for(int o = 0; o &lt; 100000000 ; o++)
              {
               printf(&quot;\a&quot;);
               Sleep(500);
               }
          printf(&quot;!! EXIT !!&quot;);
          Sleep(900);
          return 0;
          }
      textcolor(15);
      printf(&quot;Enter password:\n&quot;);
      textcolor(0);
      gets (str2);
      r=strcmp(str1, str2);
      textcolor(15);
      if(r==0)
      {
      Sleep(1000);
      }
      else
      {
         textcolor(4);
         printf(&quot;!! Passwot is incorect !!&quot;);
         for(int f = 0; f &lt; 100000000 ; f++)
            {
            printf(&quot;\a&quot;);
            Sleep(500);
            }
         textcolor(4);
         printf(&quot;    EXIT NOW!!!&quot;);
         Sleep(900);
         return 0;
      }
      textcolor(10);
      printf(&quot;Willkommen&quot;);
      textcolor(15);
      printf(&quot;\a&quot;);
      printf(&quot; wie geht es ihnen?&quot;);
      gets (pass2);
      t=strcmp (pass1, pass2);
      if(t==0)
          {
          textcolor(10);
          printf(&quot;Das ist toll!&quot;);
          textcolor(15);
          }

      else
          {
           printf(&quot;Das ist  sehr schade&quot;);
          }
          getchar();
          }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1952668</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1952668</guid><dc:creator><![CDATA[yannicST]]></dc:creator><pubDate>Tue, 14 Sep 2010 19:34:22 GMT</pubDate></item><item><title><![CDATA[Reply to brauche hilfe bei c++ password verschlüsseln on Tue, 14 Sep 2010 19:52:16 GMT]]></title><description><![CDATA[<p>Was hat dieser Code bitte noch mit C++ zu tun <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Würde mal sagen das gehört ins C-Subforum.</p>
<p>Aber wieso hast du nicht erst mal kurz gegoogelt ich hab nicht mal ne Minute gebraucht.....<a href="http://lmgtfy.com/?q=c%2B%2B+in+der+konsole+sternchen+bei+eingabe" rel="nofollow">http://lmgtfy.com/?q=c%2B%2B+in+der+konsole+sternchen+bei+eingabe</a></p>
<p>Lg freeG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1952680</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1952680</guid><dc:creator><![CDATA[fr33g]]></dc:creator><pubDate>Tue, 14 Sep 2010 19:52:16 GMT</pubDate></item></channel></rss>