8
I wonder if there is a way to mask the input of characters in the input()
python.
Ex:
Senha = 1234
Entrada = int(input("Digite sua senha: "))
In the entry above I wanted to change the letters entered by asterisks.
There are ways to do this in python?
Actually, using getpass does not change the letters inserted by asterisks. What it does is hide the digits of your password, which in my opinion is safer than displaying the asterisks, as you do not expose the amount of characters in your password. Example: import getpass password = getpass.getpass('Enter your password: ') print(password) > Enter your password: > 1234
– Victor Alessander
In the programming you can write this manually and replace the data with the asterisk character.
– Olive