Boost C++ Libraries: Ticket #20: passwords in c++ programming https://svn.boost.org/trac10/ticket/20 <pre class="wiki">How would i hide the passwords by using (*** , i.e. asteriks signs ) in c++ programming. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/20 Trac 1.4.3 mohaps Thu, 13 Feb 2003 01:06:19 GMT <link>https://svn.boost.org/trac10/ticket/20#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/20#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=110222 Hi, this code works on windows mohaps #include &lt;stdio.h&gt; int GETCH(void) { return _getch(); } int main(void) { char input; char *ptr; char password[20]; int count; count = 0; printf("enter your password: "); do { input = GETCH(); if(input == '\xD') break; // enter pressed? putc('*', stdout); ptr = &amp;input; password[count] = *ptr; count++; }while(count &lt; 20); password[count++] = '\0'; // terminate the string printf("\nyour password: %s\n", password); return 0; } </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>david_abrahams</dc:creator> <pubDate>Wed, 28 May 2003 10:18:36 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/20#comment:2 https://svn.boost.org/trac10/ticket/20#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=52572 This is not an appropriate request for Boost. </pre> Ticket anonymous Wed, 04 Jul 2007 05:45:45 GMT attachment set https://svn.boost.org/trac10/ticket/20 https://svn.boost.org/trac10/ticket/20 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">password.doc</span> </li> </ul> Ticket