Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Inputting a password w/o having it displayed on screen

by TrinityInfinity (Scribe)
on Mar 16, 2001 at 00:11 UTC ( [id://64763]=perlquestion: print w/replies, xml ) Need Help??

TrinityInfinity has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Inputting a password w/o having it displayed on screen
by Masem (Monsignor) on Mar 16, 2001 at 00:18 UTC
    Term::Readline and Term::Readline::Gnu are what you are looking for; they are standard STDIN prompt modules, but can be used to do no-echo typing as you want with passwords.
    Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
Re: Inputting a password w/o having it displayed on screen
by SparkeyG (Curate) on Mar 16, 2001 at 00:19 UTC
    Try this on for size. It was found by searching this website using the ever-present search option near the top, left hand corner of each page.
    --SparkeyG
Re: Inputting a password w/o having it displayed on screen
by sierrathedog04 (Hermit) on Mar 16, 2001 at 02:18 UTC
    If the password is submitted online then use HTML's built-in password field. When submitting to an Apache webserver then use CGI.pm's password_field function, which writes the tags for you. The CGI.pm documentation gives the following example written in the named parameter style:
    print $query->password_field(-name=>'secret', -value=>'starting value', -size=>50, -maxlength=>80);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://64763]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-29 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found