Passport in ***** form

Hi ,
   I am currently writing a program for logging in using telnet. Just
wanted the password to be kept secret so want to implement it using
********** when the user types in the password.

Thanks,
Prasad.

···

--
Posted via http://www.ruby-forum.com/.

Hi,

···

Am Mittwoch, 16. Jan 2008, 22:57:32 +0900 schrieb Prasad Pednekar:

   I am currently writing a program for logging in using telnet. Just
wanted the password to be kept secret so want to implement it using
********** when the user types in the password.

<http://www.bertram-scharpf.de/tmp/password.rb&gt;

Bertram

--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de

Hey,
   But aint there any other altenative, As I am a begiiner in ruby just
wanted to know if we could take in the input through "gets" method in a
safe way???

Thankx,
Prasad

···

--
Posted via http://www.ruby-forum.com/.

Hi,

···

Am Freitag, 18. Jan 2008, 16:04:09 +0900 schrieb Prasad Pednekar:

   But aint there any other altenative, As I am a begiiner in ruby just
wanted to know if we could take in the input through "gets" method in a
safe way???

There is also <http://www.caliban.org/ruby/ruby-password.shtml&gt;\.
I forgot why I did not like it and wrote my own.

Bertram

--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de

After installing the highline gem you can:

require 'highline'
password = HighLine.new.ask('password:'{|q| q.echo
= '*' }

Hope that helps

^ manveru

···

On 1/18/08, Bertram Scharpf <lists@bertram-scharpf.de> wrote:

Hi,

Am Freitag, 18. Jan 2008, 16:04:09 +0900 schrieb Prasad Pednekar:
> But aint there any other altenative, As I am a begiiner in ruby just
> wanted to know if we could take in the input through "gets" method in a
> safe way???

There is also <http://www.caliban.org/ruby/ruby-password.shtml&gt;\.
I forgot why I did not like it and wrote my own.

Bertram

--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de