Re: how to hide passwd from INPUT



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
.



Relevant Pages

  • Re: how to hide passwd from INPUT
    ... this time I can't login into my primary mailbox of 30gigs.So I ... the password typed on screen is clear plain text.How can I get it input ... Sent using Laszlo Mail. ...
    (perl.beginners)
  • how to hide passwd from INPUT
    ... this time I can't login into my primary mailbox of 30gigs.So I change another email for this question. ... the password typed on screen is clear plain text.How can I get it input ... Sent using Laszlo Mail. ...
    (perl.beginners)