| | |
Hiding Password on the login screen
![]() |
•
•
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.
>>also i am using GUI
You mean the compiler is has a GUI interface ? I think you will probably have to use the curses library.
You mean the compiler is has a GUI interface ? I think you will probably have to use the curses library.
The most important thing in the Olympic Games is not to win but to take part, just as the most important thing in life is not the triumph but the struggle. The essential thing is not to have conquered but to have fought well.
-Pierre de Coubertin, The Olympic Creed Inspired by Bishop Ethelbert
-Pierre de Coubertin, The Olympic Creed Inspired by Bishop Ethelbert
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
Views: 3875 | Replies: 13
| Thread Tools | Search this Thread |
Tag cloud for C++
algorithm array arrays assignment beginner binary c++ c/c++ calculator char class classes client code command compile compiler console constructor conversion convert count delete dll dynamic encryption error exception file files fstream function functions game givemetehcodez graph gui helpwithhomework homework http iamthwee ifstream input int lazy linker list loop looping loops math matrix member memory multidimensional newbie number object objects opengl output parameter pointer pointers problem program programming project qt random read recursion recursive reference simple sockets sort spoonfeeding string strings struct student studio system template templates text time tree url variable vc++ vector video visual win32 window windows winsock xml






