elmaami 0 Newbie Poster

Hi all
I want a help from you about how to make web server and client ,send and receive data over network securely by using encryption algorithms like DES,3DES and hash techniques.
I want the encryption to use a shared secret key which is valid for one session.This is generated randomly (half by server and half by client).
My Goal is to let client upload/download documents to/from server which has to make sure that the sent documents are not already exists by generating hash code for the content of document. the server should send the right HTTP response if client want to download document is not existed.
please help me..
:S