getpass - Python module for portable password input

Last night I found an interesting Python module, getpass. It has two functions:
  • getpass(): Prompt the user for a password without echoing.
  • getuser(): Return the login name of the user.
The getpass function was really useful for me. But sometimes you would want to avoid the getuser function, and provide user name on your own.

Please check the Python documentation for details: http://docs.python.org/lib/module-getpass.html

Comments

Popular posts from this blog

Strip HTML tags using Python

lambda magic to find prime numbers

Convert text to ASCII and ASCII to text - Python code