| | |
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 beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count data database delete desktop developer directshow dll download dynamic encryption error file forms fstream function functions game generator getline givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






