PasswordField, Programmatically Reveal/Hide?

Is there a way to hide or reveal the password field contents through scripting?

I have a long-lived embedded view containing a password field for authorization, and I would like to be able to hide the password contents for each new authorization attempt.