Implement the socket program

Assignment Help JAVA Programming
Reference no: EM132267747 , Length: 3 pages

Encrypted Communication

Background

The goal of this assignment is to give you practical experience in using cryptographic libraries to implement encryption functionality in your code, especially in regard to data in transit i.e. network communications.

To this end you are provided with two pieces of code (Server.java and Client.java) written in the Java programming language. The code implements a simple socket communication program that enables two machines (a client and a server) to make a connection to each other and send messages.

Your objective in carrying out this assignment will be to modify the code to achieve the following:

• Unlimited communication between the client and the server
• Termination of the connection when a specific message is sent from the client to the server
• Encryption of the communication between the client and the server using any encryption technique

Instructions

1. You will find attached the two pieces of Java programming language code that implement the socket program (One for the client side and the other for the server side).

2. You can run the program on any platform that works for you (I would suggest using Ubuntu Linux). After compiling the code, you have to assign a port number (example; Port number = 5000, you can use any port number between 2000 and 65535) to the server when putting in the command to run it. i.e.

java Server 5000

On the client side, you need the host name or IP address of the machine on which the server is running (if the host name or IP address is X) to run the client and connect to the server

java client X 5000

If you are running both programs on the same machine, the host name of the server will be localhost

java client localhost 5000

NOTE: A tutorial will be given to explain the details of the program and demonstrate how to compile and run the code. Please endeavor to attend the tutorial

3. The connection between the client and server closes after one message is sent, modify the codes such that multiple messages can be sent between both sides without termination.

4. Modify the code to terminate the connection when the client sends the message "End Session" to the server.

5. Modify the code such that communication between both the client and server is encrypted

6. During the communication the terminal should display the messages received both before decryption and after decryption

NOTE: Implement any encryption technique you've learnt so far and use any Java language cryptographic library of your choice, preferably the one you identified in your previous assignment.

Attachment:- Assignment.rar

Reference no: EM132267747

Questions Cloud

Wireless sensor networks valuable for business : Why are radio frequency identification (RFID) and wireless sensor networks valuable for business?
Supply chain management systems coordinate planning : How do supply chain management systems coordinate planning, production and logistics with suppliers?
Group of procurement consultants : You are a group of procurement consultants that has been hired by “(you are to choose the company name)” Limited,
Investing in a juice factory - a capital budgeting analysis : FC 12-2 - Managerial Finance - MAJAN COLLEGE (UNIVERSITY COLLEGE) - What would be the impact on NPV and IRR if the "worst case scenario" occurs
Implement the socket program : implement encryption functionality in your code, especially in regard to data in transit i.e. network communications - written in the Java programming language
Write essay on criminal justice : Write essay on Criminal Justice
Why is this stressor a priority for you : GNED137 A Wellness Approach to Stress Management - Centennial College - Priority Stressor: (Identified and Explained) - Identify at least 2 possible barriers
Explain the use of tools - the source of the tools : The security budget has been slashed due to the down economy, so the packet capture is all you have to work with for this analysis....or is it
Define the project scope and constraints : Define the Project Scope and Constraints and Perform Fact finding:Create a User Survey or Questionnaire - Define the Project Scope and Constraints

Reviews

len2267747

3/27/2019 5:42:41 AM

1) Submit your modified code and a report (which should include screenshots of your results for questions 3, 4, and 5) in separate files via Blackboard by the due date. No zipped files allowed.

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd