Project

General

Profile

Bug #1048

getpass.getpass python function doesn't hide input

Added by Tim Sarbin almost 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Desktop (JDS)
Target version:
Start date:
2011-05-19
Due date:
2011-09-16
% Done:

80%

Estimated time:
1.00 h
Difficulty:
Medium
Tags:
python

Description

The following code should print "Password: " on the command line, then get user text input without displaying it on the screen.

import getpass
passStr = getpass.getpass("Password: ")

It does hide input initially, but on pressing Enter, it then writes the entire password to the screen. (Expected output is nothing at all).

Also available in: Atom PDF