[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Passport in ***** form

Prasad Pednekar

1/16/2008 1:58:00 PM


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-....

4 Answers

Bertram Scharpf

1/17/2008 10:01:00 PM

0

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-.../tmp/passw...

Bertram

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

Prasad Pednekar

1/18/2008 7:04:00 AM

0

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-....

Bertram Scharpf

1/18/2008 1:14:00 PM

0

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

Bertram


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

Michael Fellinger

1/18/2008 3:50:00 PM

0

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....
> I forgot why I did not like it and wrote my own.
>
> Bertram
>
>
> --
> Bertram Scharpf
> Stuttgart, Deutschland/Germany
> http://www.bertram-...
>
>