mirror of https://github.com/mikaku/Monitorix.git
fixed to disable 'echo' when typing the password
This commit is contained in:
parent
15f707bb2e
commit
e9a78f2b48
|
@ -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 = <STDIN>);
|
||||
system("stty echo");
|
||||
print crypt($word, $salt) . "\n";
|
||||
} else {
|
||||
system("stty -echo");
|
||||
|
|
Loading…
Reference in New Issue