What do I need to do for code in Bash, if I want to echo *s in place of password characters (or even just hide the characters completely) when the user types so
*
If you don't care about it being interactive, you can simply do
read -s pass echo "$pass" | sed 's/./*/g'
This will show a * for each character of the entered password after enter is pressed.