From: James Harrison Date: 2010-07-30T05:49:11+09:00 Subject: Re: how to read password from keyboard > > If I want to read a simple string from keyboard: > simple_text = gets > > What if a password needs to be read from keyboard (commando line)? > How do I mask it with asterisks? Try thinking of it like this: every time a key is pressed on the keyboard, you want to: print "*" I don't have time right now to mock up an example, but that might get you started.