`stty -echo` $pass=<STDIN>; `stty echo` [download]
In reply to hiding password typing in Windows by srinivas_rocks