Execute the given code - Encrypted Communication

Assignment Help JAVA Programming
Reference no: EM132265360

Execute the code: Encrypted Communication

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:- Code.rar

Verified Expert

The solution file is prepared in netbeans which has two files are server.java and client.java. This program implemented server client messaging system using encrypted technique. Client and server can establish connection using server port number and send messages between them. Client's message can send to server which encrypted and server can decrypted the client's message and reply to client in encrypted message. The report file has program with output screen shot.

Reference no: EM132265360

Questions Cloud

Explain what a macro command is and provide an example : There are assemblers that are capable of handling macro commands. Part 1: Explain what a macro command is and provide an example
Context free grammar and a monotone grammar : What is the difference between a context free grammar and a monotone grammar?
What is the dns address that is used : What is the DNS address that is used to bring you to these two websites? Provide the evidence from Wireshark. If there are multiple addresses, show all of them.
Explain what the lessons are : Explain what the lessons are, then explain how (and why) they will help you improve your life and career.
Execute the given code - Encrypted Communication : Execute the given code - implement encryption functionality in your code, especially in regard to data in transit i.e. network communications
Identify dependent and independent variable : Identify dependent and independent variable and write statement from below (variable A and variable B. )
How you would address the opponent to your position : Describe how you would address the opponent to your position. Be specific and provide examples. Recommend at least one amendment to the bill in support.
Concerned about the exact width of their cyclocross tires : Consider again the company making tires for bikes is concerned about the exact width of their cyclocross tires.
Political structures and the international community : Identify and discuss the ways in which federalism, political structures, and the international community,

Reviews

len2265360

3/25/2019 12:41:19 AM

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. Submission 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