Re: how to hide passwd from INPUT
- From: security.department@xxxxxxxx (John Doe)
- Date: Tue, 29 Nov 2005 15:53:28 +0100
Jennifer Garner am Dienstag, 29. November 2005 15.40:
> HI,Lists,
>
> Sorry, this time I can't login into my primary mailbox of 30gigs.So I
> change another email for this question.
>
> When I get something from input such as:
>
> my $passwd=<STDIN>;
>
> the password typed on screen is clear plain text.How can I get it input
> as hide type such as ***?Thanks.
perldoc -q password
=>
"How do I ask the user for a password?"
"...
use Term::ReadKey;
ReadMode('noecho');
$password = ReadLine(0);
...."
I would add a
ReadMode('normal');
otherwise your terminal could stay in noecho mode.
hth, joe
.
- References:
- how to hide passwd from INPUT
- From: Jennifer Garner
- how to hide passwd from INPUT
- Prev by Date: Re: how to hide passwd from INPUT
- Next by Date: Re: Matching a Scalar Variable
- Previous by thread: Re: how to hide passwd from INPUT
- Next by thread: Re: how to hide passwd from INPUT
- Index(es):
Relevant Pages
|
|