Ingresar una contraseña a través de la consola [cerrado]

i would like someone to make a program that asks the user to enter a password and when the user enters the password in the password field the password is not shown in text nor figures. just like the linux kernel.( when you type sudo bash or sudo su )

preguntado el 25 de agosto de 12 a las 09:08

buscado password library in pythonon google, and the first result was getpass — Portable password input — Python v2.7.3 -

1 Respuestas

Ver

http://docs.python.org/library/getpass.html

import getpass
passwd = getpass.getpass()

Respondido 25 ago 12, 09:08

+1, I never knew about this library. - Ashwini Chaudhary

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.