Using Getpass to prompt for sensitive info without prompting for it
import getpass text = getpass.getpass(prompt='Enter your passphrase to encrypt ') print("You have entered: {}".format(text))