in reply to Hiding passwords in scripts
What reason do you have for putting a password in your scripts?use Term::ReadKey; use DBI; . . . print "Enter password for $user:\n"; ReadMode 2; chomp($passwd = ReadLine(0)); ReadMode 0; # Reset tty mode my $dbh = DBI->connect("DBI:mysql:database=$db;host=$server", $user, $ +passwd);
| Plankton: 1% Evil, 99% Hot Gas. |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hiding passwords in scripts
by SpanishInquisition (Pilgrim) on Sep 29, 2004 at 20:04 UTC | |
by Anonymous Monk on Dec 07, 2004 at 18:58 UTC |