shell script function read

C++
read -s -p “Enter Password: ” pswd
Source

Also in C++: