Hi,
I would like to know how can I write a program in 'C' so that when the user types in the password, the characters are not displayed on the screen. I want to do this on both Windows and Unix.
Ta,
Moepi
Hi,
I would like to know how can I write a program in 'C' so that when the user types in the password, the characters are not displayed on the screen. I want to do this on both Windows and Unix.
Ta,
Moepi
Shadow posted 13 examples and one of them is the hiding password chars. Download it here.
Current projects:
1) User Interface Development Kit (C++)
2) HTML SDK (C++)
3) Classes (C++)
4) INI Editor (Delphi)
Hi,
Hi,
ON WINDOWS IT WORKS FINE.
I would like to know how can I write a program in 'C' so that when the user types in the password, the characters are not displayed on the screen. I want to do this Unix.
Ta,
Moepi
Hi,
Hi,
ON WINDOWS IT WORKS FINE.
I would like to know how can I write a program in 'C' so that when the user types in the password, the characters are not displayed on the screen.
I WANT TO DO THIS ON UNIX.
Ta,
Moepi
You need getch() or your local equivalent. This is a non standard function that appears in various compilers.
I'd suggest doing a man on getch and hopefully it'll tell you which library it's in. The principles are the same though.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]