Message 339671 - Python tracker

Message339671

Author stevoisiak
Recipients stevoisiak
Date 2019-04-08.20:05:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554753907.34.0.232598875583.issue36566@roundup.psfhosted.org>
In-reply-to
Content
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:
History
Date User Action Args
2019-04-08 20:05:07stevoisiaksetrecipients: + stevoisiak
2019-04-08 20:05:07stevoisiaksetmessageid: <1554753907.34.0.232598875583.issue36566@roundup.psfhosted.org>
2019-04-08 20:05:07stevoisiaklinkissue36566 messages
2019-04-08 20:05:07stevoisiakcreate