[Python-ideas] Password masking for getpass.getpass

Muhammad Ahmed Khalid khali119 at umn.edu
Tue Jan 12 23:31:38 EST 2016


I've gotten some ideas from people's emails and I think it is worth
investing more time with this feature. I will work to make the code
platform independent and python 3 compatible.

The standard library code for getpass.getpass() actually does use msvcrt
for the windows platform so I think I'll keep my code like that but I'll
add another function supporting unix.

Considering the mobile device issue: there can always be options. The
developers can choose either to implement that feature or not and even more
let the users decide if they want to use the feature. This is exactly what
i am aiming for with the desktop version too. The ability to choose.

~ KingMak



On Tue, Jan 12, 2016 at 9:07 PM, Ethan Furman <ethan at stoneleaf.us> wrote:

> 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~
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160112/1cfc12da/attachment-0001.html>


More information about the Python-ideas mailing list