Revision: 62185
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 7, 2013 02:40 by eiger824
Initial Code
#include <iostream> #include <string> using namespace std; void askForSecretPassword(void){ string password; cout<<"Enter your password: "; cin>>password; int len=password.length(); system("cls"); cout<<"Enter numeric password: "; for(int i=0;i<len;i++){ cout<<"*"; }cout<<endl; }; void main(){ askForSecretPassword(); system("pause"); }
Initial URL
http://programmingeiger824.blogspot.com
Initial Description
In C++ console there's no way to make our passwords invisible when typing them. Here is a really simple funcion that resembles the behavior of hiding passwords.
Initial Title
Hiding Passwords With C++
Initial Tags
Initial Language
C++