I need to ask the user its password


I there a way with GETS or other , to
type in "dark" that is user input not
visible ?