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!!
Printable View
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.