[Python-bugs-list] [ python-Bugs-686536 ] raw_input without echo

SourceForge.net noreply@sourceforge.net
Fri, 14 Feb 2003 06:06:22 -0800


Bugs item #686536, was opened at 2003-02-14 13:23
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=686536&group_id=5470

Category: None
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Submitted By: a.hofkamp (axhlkhb)
Assigned to: Nobody/Anonymous (nobody)
Summary: raw_input without echo

Initial Comment:
Hello,

When entering data from the keyboard that should not
become known (like passwords), it is not possible to
prevent raw_input from echo-ing the entered data.

By adding an 'echo' flag (which defaults to 1) to
raw_input() such data can be queried from the keyboard
easily (safely is another matter, but then again that
is mainly a matter of how paranoid you are).

On systems that support more secure input methods, one
could even switch to these moethods (e.g. using
/dev/tty on a Unix system).

Albert


----------------------------------------------------------------------

>Comment By: a.hofkamp (axhlkhb)
Date: 2003-02-14 14:06

Message:
Logged In: YES 
user_id=438586

No, I didn't know about getpass.

Let me rephrase the question then
Why is there getpass.getpass() when almost the same
functionality exists as raw_input()

Fragmentation of functionality is bound to throw users
off-track, having them search at the wrong place, and
submitting unneeded feature requests :-)

Albert


----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2003-02-14 13:51

Message:
Logged In: YES 
user_id=6656

Err, do you know about the getpass module?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=686536&group_id=5470