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.

Hi,

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

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

Bertram

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

Hi,

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

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.
I forgot why I did not like it and wrote my own.

Bertram

After installing the highline gem you can:

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

Hope that helps

^ manveru