I want to show star characters (*) in my IDE output when a user is entering sensitive data. For example, in the console output I print "Please enter password: " and then the user needs to enter his password.
This is the current terminal output when a user enters 1234
:
Please enter your password: 1234
Here is the desired terminal output when a user enters 1234
:
Please enter your password: ****