Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: platform-independent way to enter a password in a command-line program

Python: platform-independent way to enter a password in a command-line program
{filelink=16772}

import getpass
# get current username
usr = getpass.getuser()
pwd = getpass.getpass("enter password for user %s: " % usr)

Users who found this page were searching for:

  • enter password with python

No comments yet.

Leave a Comment