From: Csaba Henk Date: 2005-03-22T08:14:52+09:00 Subject: Re: reading password from stdin On 2005-03-21, Chris Mueller wrote: > You need the modules ruby-termios and ruby-password. Both of these are > available from RAA > > http://raa.ruby-lang.org/project/ruby-password/ > http://raa.ruby-lang.org/project/ruby-termios/ > > You may run into problems with buffered/unbuffered inputs if any > exceptions happen (ie prntscrn, ctrl+c etc.) but termios is used to mask > the user input. To add, if you don't want to have these external dependencies, there is a poor man's solution, namely: system "stty -echo" system "stty echo" Csaba