Hi everyone,
I need help with displaying a password string entered by the user in asterisks*.
for example:
my version is this...
Enter password: gsdfsa
however, I want it to look like this...
Enter password:******
PLEASE HELP!!
This is a discussion on how to enter a password with asterisks within the C Programming forums, part of the General Programming Boards category; Hi everyone, I need help with displaying a password string entered by the user in asterisks*. for example: my version ...
Hi everyone,
I need help with displaying a password string entered by the user in asterisks*.
for example:
my version is this...
Enter password: gsdfsa
however, I want it to look like this...
Enter password:******
PLEASE HELP!!
Use a keyboard input routine that doesn't echo characters to the screen. Then when a key is pressed, echo and asterisk. Watch for the following characters:
<TAB>
<BKSPC>
<RTRN>
Tab is 0x09 - aka CTRL-I
Backspace is 0x08 - aka CTRL-H
Return is 0x0D - aka CTRL-M
enjoy.