Jump to content
Please Help Me in PYTHON
Asked by Jonathan Zerox
Posted Aug 25 2012 12:52 AM
Please i need some help, i would like you to help me 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 )
i've searched everywhere and i found no help.
Am Doing Python! Hoping to hear from you.
Answered by kcunning
Posted Aug 30 2012 05:05 PM
If you want to get a password from a user, you'll need to import the password library.
from getpass import getpass
password = getpass()