[New-bugs-announce] [issue36566] Support password masking in getpass.getpass()

Steven Vascellaro report at bugs.python.org
Mon Apr 8 16:05:07 EDT 2019


New submission from Steven Vascellaro <stevoisiak at gmail.com>:

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:

----------
components: Library (Lib)
messages: 339671
nosy: stevoisiak
priority: normal
severity: normal
status: open
title: Support password masking in getpass.getpass()
type: enhancement
versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36566>
_______________________________________


More information about the New-bugs-announce mailing list