server/client design: security handling concern

P

puzzlecracker

Here my general road map.... for multithreaded chat program
(client/server):

Client sends users name, server responds with SecretKey, then users
send the encrypted password. Server responds with ConnectionObject to
indicate the status. All the communication between client and server is
encrypted thereafter.

it is pretty simple program, and I am thinking of using NIO .. What is
the good architecture for such problem?


what is de facto way to approach the design. Thanks
 
T

Thomas Hawtin

puzzlecracker said:
Client sends users name, server responds with SecretKey, then users
send the encrypted password. Server responds with ConnectionObject to
indicate the status. All the communication between client and server is
encrypted thereafter.

The server responds by sending a secret key in the clear?

I suggest using existing procedures/protocols/standards/code. See
javax.net.ssl, for instance.
it is pretty simple program, and I am thinking of using NIO .. What is
the good architecture for such problem?

I guess start by googling "reactor pattern".

Admittedly, I don't have a copy of this volume, or have even read it,
but "Pattern-oriented Software Architecture Vol 2: Patterns for
Concurrent and Networked Objects" seems to fit:

http://www.amazon.co.uk/gp/product/0471606952/

Tom Hawtin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top