This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Support password masking in getpass.getpass()
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.9, Python 3.8, Python 3.7, Python 3.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Adding the ability for getpass to print asterisks when password is typed
View: 32884
Assigned To: Nosy List: cheryl.sabella, stevoisiak
Priority: normal Keywords:

Created on 2019-04-08 20:05 by stevoisiak, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg339671 - (view) Author: Steven Vascellaro (stevoisiak) * Date: 2019-04-08 20:05
Support password masking in getpass.getpass()

Currently, getpass.getpass() hides all user input when entering a password. This can throw off non-Unix users who are used to passwords being masked with asterisks *. This has led some users to write their own libraries for this functionality.

Proposal:

- Add an optional argument to `getpass.getpass()` for a character to mask user input

Usage Example:

> import getpass
> password = getpass.getpass(mask='*')
Password: **********
> password = getpass.getpass()
Password:
msg339675 - (view) Author: Cheryl Sabella (cheryl.sabella) * (Python committer) Date: 2019-04-08 21:05
Thank you for the suggestion.  I believe this is a duplicate of issue 32884.
History
Date User Action Args
2022-04-11 14:59:13adminsetgithub: 80747
2019-04-08 21:05:01cheryl.sabellasetstatus: open -> closed

superseder: Adding the ability for getpass to print asterisks when password is typed

nosy: + cheryl.sabella
messages: + msg339675
resolution: duplicate
stage: resolved
2019-04-08 20:05:07stevoisiakcreate