Hiding keyboard input

Laurence Tratt tratt at dcs.kcl.ac.uk
Fri May 14 05:10:43 EDT 1999


In message <7hftel$dks$2 at usenet.kreonet.re.kr>
          seojs at gw4.hyundai.co.kr (Seo JinSoo) wrote:

> I would like to hide my key typing during entering password.
> How to?

You probably want to have a look at the standard 'getpass' module, which has
a function 'getpass'. ie something like:

  import getpass
  password = getpass.getpass("Password: ")

Should put get the password to your program without it being echoed to
screen.


Laurie




More information about the Python-list mailing list