diff --git a/docs/htpasswd.pl b/docs/htpasswd.pl index b5c9815..e2f0087 100755 --- a/docs/htpasswd.pl +++ b/docs/htpasswd.pl @@ -20,7 +20,9 @@ my $word; if(!$ARGV[0]) { my $salt = join('', ('.', '/', 0..9, 'A'..'Z', 'a'..'z')[rand 64, rand 64]); print "Password to encrypt: "; + system("stty -echo"); chomp($word = ); + system("stty echo"); print crypt($word, $salt) . "\n"; } else { system("stty -echo");