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.
  • Comment on Inputting a password w/o having it displayed on screen

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);