I have no idea how.... anyone have a clue
Printable View
I have no idea how.... anyone have a clue
On input? Saved in a file? Across a network?
Input
Without firsthand knowledge of this area, I'm going to propose that you'll need platform specific calls to functions (like conio.h on windows) to access the keyboard buffer and cause backspaces to occur on each getchar() call you make to read the password. I'm sure someone more knowledgeable will chime in shortly.
You need to read characters without actually showing them - search the forum for "reading password" and I'm sure you'll find a thread or three on the subject. Note that this is DEFINITELY NOT beginner stuff [although I suppose a copy'n'paste of some existing code would be sufficient], and it is very much system dependant in the sense that Windows does it one way, Linux/Unix does it another way, and I'm sure that the older MacOS (before MacOS X) does it a completely different way again.
--
Mats