password question on startup
cruciatuz
sasoft at gmx.de
Sat Dec 1 13:39:25 EST 2001
On Sat, Dec 01, 2001 at 01:22:52PM +0100, Andreas Penzel wrote:
> Hello NG!
>
> I want that on the programm-start the user has to give user-id and password.
> The password should not be seen on the screen, only e.g. stars.
>
> What to do?
import getpass
getpass.getuser() # returns the current username
getpass.getpass() # returns an entered password (doesn't show pass on
# screen)
have a look at the documentation of getpass, too.
i hope this helps
--
Stefan Antoni
----------------------------
Sam Dez 1 13:35:33 EST 2001
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20011201/0093c168/attachment.sig>
More information about the Python-list
mailing list