On Thu, 06 Jul 2006 06:39:38 -0700, Johhny wrote: > Hello, > > I am currently writing some python code which requires the use of a > password. Currently I am using the raw_input function to take the users > input in and use it. One problem with that is the password is displayed > in clear text on the console of the server. I would like to work on a > way around that. Is there any built in method to do that or any > how-to's around the Internet / Advice that I could research? > > Regards, > > Johhny.
http://docs.python.org/lib/module-getpass.html Python 2.4.3 (#2, Apr 27 2006, 14:43:58) [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import getpass >>> pw = getpass.getpass() Password: >>> pw 'foopasss' HTH :) -- http://mail.python.org/mailman/listinfo/python-list