in reply to Re: Reading streams, perl variables when script is running
in thread Reading streams, perl variables when script is running
Thanks for the informative responses, guys. You're the best!
Would it be a pretty accurate summary to say: keeping the decryption password in memory would work, as long as no one managed to gain root access?
Small follow-up question: If I wanted to avoid using Term::ReadKey, would the following code work for reading the password? Is Term::ReadKey in any way more secure? (I prefer to avoid installing additional modules where I can for the sake of portability, unless I absolutely need them.)
print "Password: "; system('stty','-echo'); my $pw=<STDIN>; system('stty','echo'); chomp($pw);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Reading streams, perl variables when script is running
by kcott (Archbishop) on Jan 05, 2014 at 06:03 UTC | |
by xtpu (Novice) on Jan 05, 2014 at 07:47 UTC |