| | |
Hiding Password on the login screen
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2007
Posts: 35
Reputation:
Solved Threads: 0
Hi All,
I am writing a code in C++ to implement Login screen which will accept user name and password from the user. Now my main concern is to hide that password to be sceen by the user.
suppose my password is "Rat420" so at the time of typing anything i want it to appear as "******".
That means i need "*" to be seen on screen for each and ever character, and the original password is not lost.
I am writing a code in C++ to implement Login screen which will accept user name and password from the user. Now my main concern is to hide that password to be sceen by the user.
suppose my password is "Rat420" so at the time of typing anything i want it to appear as "******".
That means i need "*" to be seen on screen for each and ever character, and the original password is not lost.
Honey try reading the below:
http://www.daniweb.com/forums/thread77633.html
http://www.daniweb.com/forums/thread77633.html
*Voted best profile in the world*
There is a Buit in function called getpass in conio.h
Prototype : char *getpass(const char *prompt);
Displays the prompt string and then reads the password without echoing. Returns a pointer to a static string containing the input password.
Usage://include the conio.h and string.h
char a[20];
strcpy(a,getpass("Enter Pass"));
cout<<a;
Prototype : char *getpass(const char *prompt);
Displays the prompt string and then reads the password without echoing. Returns a pointer to a static string containing the input password.
Usage://include the conio.h and string.h
char a[20];
strcpy(a,getpass("Enter Pass"));
cout<<a;
![]() |
Similar Threads
- Login screen (Pascal and Delphi)
- Comparing Random generated values with Entered values in LogIn screen (ASP.NET)
- username disappear in xp login/welcome screen (Windows NT / 2000 / XP)
- hide user from login screen (OS X)
- Login Screen with VB6 and Access (Visual Basic 4 / 5 / 6)
- XP Login screen on Windows Server 2003 (Windows NT / 2000 / XP)
- MSN Login Screen Keeps Coming Up (Web Browsers)
- login screen config (Window and Desktop Managers)
Other Threads in the C++ Forum
- Previous Thread: HELP ME
- Next Thread: Want to learn GUI bsed C++ programming
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer dll download dynamiccharacterarray email encryption error file forms fstream function functions game generator getline givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






