I need to write a simple username password program, and I would like the characters to appear on the console as * not the character typed. I would really like some help with this, thank you.
I need to write a simple username password program, and I would like the characters to appear on the console as * not the character typed. I would really like some help with this, thank you.
Okay, you have to show what you have done so far - them's the rules - its not a hire board
Thought for the day:FLTK: "The most fun you can have with your clothes on.""Are you sure your sanity chip is fully screwed in sir?" (Kryten)
Stroustrup:
"If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"
You need to use some kind of library for that, unfortunately. If you are on *nix, I think readline will be able to do it:
The GNU Readline Library
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
It is important to note that there is no standard C way of doing this, however:
FAQ- How do I get input without the user pressing enter?
>> Is there a ... way to not show any characters at all during the input ?
To enter password without displaying it
"get_password" using _getch():
Problem with inputting password?
_getch() for *nix:
while getch question
gg