# Type password without left CTRL press key
import maskpass # importing maskpass library
# masking the password
pwd = maskpass.advpass()
print('Password : ', pwd)
import maskpass as mp
# The mask default is "*"
pwd = mp.askpass('Your Nickname:')
if (pwd == 'nick'):
print('Welcome')
else:
print("Incorrect password")
# SETTING A VALUE FOR MASK=
import maskpass as mp
pwd = mp.askpass('Your Nickname:', mask="#")
if (pwd == 'nick'):
print('Welcome')
else:
print("Incorrect password")
# importing maskpass library
import maskpass
# PRESSING LEFT CTRL ON KEYBOARD WILL REVEAL THE PASSWORD
# masking the password
pwd = maskpass.advpass()
print('Password : ', pwd)