From: Bernhard 'elven' Stoeckner Date: 2006-03-10T06:43:43+09:00 Subject: Re: Obfuscating/suppressing password output in TCPSocket? Nate Smith scribbled on Thursday 09 Mar 2006 21:46: > Hello, > > I'm attempting to suppress the output of a password that is sent via > a TCPSocket. If I have the following code: > > server = TCPServer.new( '127.0.0.1', 8888 ) > socket = server.accept() # socket is now a TCPSocket > password = socket.gets() > > is there a simple way to suppress the password on the client side > (I.E., turn off client-side echoing of the password)? I know there is > a way to do this with sockets in C, but can't figure out a way with > TCPSocket. Thanks! > > Nate You'd need to implement the telnet protocol and make your peer use a telnet client in order to implement noecho.