| | |
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 |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamiccharacterarray email encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library lines linker list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






