Your Task
Project 1: server handles one client
(1) In Netbeans, create your lab 1 directory, save your program as "Project1" on your
lab1 directory.
(2) Write Java socket programs to make a client to be able to chat with a Siri server. In this
project, you only need to make a server handle one client.
(3) Encode and decode chat Q/A messages between Siri server and client using Vigenère
cipher. We assume that the Vigenère key is "TMU".
⚫ When you run your programs, the client’s question needs to be encrypted with the
Vigenère cipher.
⚫ After receive client’s encrypted message, the server will display it, decrypt it and also
show the decrypted message.
⚫ Similarly, when server responses answer to the client, the server need to encrypt it
before sending it to the client
⚫ After the client receives the encrypted answer from the server, the client will display
the received encrypted answer, decrypt it and show the decrypted answer.
Page 3 of 3
Project 2: server handles multiple clients simultaneously
⚫ In Netbeans, create your lab 1 directory, save your program as "Project2" on your
lab1 directory.
⚫ Write Java socket programs to make multiple clients chat with a Siri server
simultaneously