from getpass import getpass

pwd = getpass("Enter your password: ")
print(pwd)

de751f61cf288efb6f6c2fd181881818866e0e8d
<mask token>

<mask token>
print(pwd)

<mask token>
pwd = getpass('Enter your password: ')
print(pwd)

from getpass import getpass
pwd = getpass('Enter your password: ')
print(pwd)

from getpass import getpass

pwd = getpass("Enter your password: ")
print(pwd)
