I have no idea how.... anyone have a clue
This is a discussion on Masking Passwords within the C++ Programming forums, part of the General Programming Boards category; I have no idea how.... anyone have a clue...
I have no idea how.... anyone have a clue
On input? Saved in a file? Across a network?
Mac and Windows cross platform programmer. Ruby lover.
Quote of the Day
12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.
Amen brother!
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.
Mac and Windows cross platform programmer. Ruby lover.
Quote of the Day
12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.
Amen brother!
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
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.