views:

93

answers:

4

I have an assignment called "Write a client server socket program in Java in which server will authenticate client using authentication algorithm." How do I get started? Which are the prerequisites of knowledge of computer security and socket programming to implement this? Any links to good tutorials?

EDIT: Using Caesar Cipher

+1  A: 

Maybe this can help you:

http://www.javaworld.com/jw-12-1996/jw-12-sockets.html

The authentication can be a simple username/password scheme.

duffymo
+1  A: 
  1. Sockets

  2. Authentication Algorithm

Vinay
+1  A: 

This requirement is vague. I will give you the simplest possible answer:

write the server in such a way, that it requires a username and password with every request.

mkoryak
+1  A: 

Are your using an authentication algorithm or are you just encrypting the message?

If you just have to encrypt the message then make sure both ends have the same cypher stored in them (Two arrays of characters should work ) and encrypt the string character by character before you send the message then decrypt it character by character on the other end.

You don't use a Caesar Cypher for authentication merely encryption. If you want authentication then separately you can have the first message of the socket connection be a username/password both of which you can encrypt client side and decrypt server side, then check they are valid. For the simplest example of this just hard code an acceptable username and password on the server and have the username and password on the client be entered on the command line.

Omar Kooheji