Echo wildcard character for password shell inputs

We can use the command stty -echo with a bash shell script to prevent characters to be echoed to the console, e.g., for password input.

Is there a way to print a * for each input character instead, and to delete them when pressing backspace?