From: Eleanor McHugh Date: 2008-05-25T00:04:40+09:00 Subject: Re: Need your recommendations for TCP Server/Client design On 23 May 2008, at 22:07, Victor Reyes wrote: > Reading a new book I just acquired I came across a package called > *GServer*. > I was wondering if this will be suitable for what I need. > Also, what type of encryption should I use? > > They were talking something like: > > Client sends connection request > Server replies with client's *hostname* and *time* > Client sends back the *time *received from server together with the > command > which the client wants to execute at the remote server. > Server executes command if it is "happy" with the reply from the > client. > > Of course all communication must be ciphered. > > Any suggestions will be greatly appreciated. Go to the link in my sig and study the Semantic Networking presentation. There's an example in there of doing hybrid key crypto, which is where you use a public key exchange to wrap a symmetric key for establishing a connection and then use the symmetric key (with much less processing overhead) to do the actual communication. On the surface it's probably overkill for your app, but the included source code shows how GServer can be used for this kind of tool and as the whole thing is based on OpenSSL it should be possible to conform with any security policy you're working under. Ellie Eleanor McHugh Games With Brains http://slides.games-with-brains.net ---- raise ArgumentError unless @reality.responds_to? :reason