I want to allow users to enter password using command-line interface. but I don\'t want to display this password on screen (or display \"****\").
How to do it in C?
For C/commandline/linux see:
man getch man noecho
see the coment in getch about noecho. I've never tried this myself.
getch
noecho
In bash if you use read -s it does not echo on the screen:
read -s
> read -s x <type something><enter> > echo $x <whatever you typed>