Python/UserPasswords

From ProgrammingExamples
< Python
Revision as of 09:30, 27 June 2010 by Dan08 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

UserPasswords.py

back to Python examples


import getpass
 
 
username = str(raw_input("Username: "))
password = getpass.getpass("Password: ") #You will see that the password won't show on your screen
 
print("Your username is %s and your password is %s" % (username, password))


back to Python examples