[Python-ideas] Password masking for getpass.getpass

Ethan Furman ethan at stoneleaf.us
Tue Jan 12 22:07:27 EST 2016


On 01/12/2016 06:45 PM, Oleg Broytman wrote:
> On Wed, Jan 13, 2016 at 01:22:02PM +1100, Chris Angelico wrote:
>> On Wed, Jan 13, 2016 at 1:17 PM, Oleg Broytman wrote:
>>> On Wed, Jan 13, 2016 at 12:54:14PM +1100, Steven D'Aprano wrote:

>>>> The old convention on Linux and Unix is to just suppress all feedback,
>>>> but even on Linux GUI applications normally show bullets ??? or asterisks.
>>>
>>>     Modern GUIs show the real character for a short period of time and
>>> then replace it with an asterisk.
>>
>> Ugh. I've only seen that on mobile devices, not on any desktop GUI,
>
>     On desktop (Windows) I saw a password entry with a checkbox to switch
> between real characters and asterisks.

While that can be handy, it is not the same as displaying each character 
as it is typed and then covering it with something else.  I agree with 
ChrisA and hope that never becomes the convention on non-mobile devices.

--
~Ethan~



More information about the Python-ideas mailing list