Jump to content

Please Help Me in PYTHON

Jonathan Zerox's Photo
Posted Aug 25 2012 12:52 AM
2496 Views

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.

Tags:
0 Subscribe


3 Replies

+ 2
  bhosmer's Photo
Posted Aug 25 2012 05:43 AM

Perhaps this: http://docs.python.o...ry/getpass.html
+ 1
  kcunning's Photo
Posted Aug 30 2012 05:05 PM

Hi there!

If you want to get a password from a user, you'll need to import the password library.

Code:

from getpass import getpass

password = getpass()
0
  nona20's Photo
Posted May 02 2013 01:50 PM

look this http://www.tutorialspoint.com/python/

Backlink Beast Review
وظائف خالية فى مصر


thkns you