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

  Write a program that collects three strings

Write a program that collects three Strings from the user. Display the three strings in alphabetical order regardless of the order in which they were input.

  When is the best time to implement a device database

When is the best time to implement a device database? What are the steps Android developers take during implementation? Name three specialized test scenarios that any QA team should consider.

  Calculator that calculates and displays when executed in net

Please help in building a non GUI mortgage calculator that calculates and displays when executed in NETBEAN compiler: Principal = $200,000 Interest Rate = 0.0575 Periods = 360 Monthly Payment = Then scrolls and displays Payment # Principle

  Create a program that is able to learn human language

For the first programming assignment you will work with your assigned partner to create a program that is able to "learn" human language and generate new sentences in the language

  Compare the readability and writability of for loop in java

Search the internet about the properties of the for loop in Ada, compare the readability, writability and reliability of the for loop in Ada and Java. Explain your answer

  Java program to compute invoice for client

You need a java program to compute the invoice for client and then print out invoice to the screen. The consulting rate is $200 per hour.

  Problem aa savings account object holds a nonnegative

problem aa savings account object holds a nonnegative balance and provides depositk and withdrawk methods where

  Analyze your threaded implementation

Analyze your threaded implementation by comparing its performance to the original non-threaded implementation and explain the measured behavior. Document your analysis as a short paper (1-3 pages), using APA format.

  Write a generic class pair which has 2 type parameters

Write a generic class Pair which has 2 type parameters, F and S, representing the type of the first and second elements of a pair respectively

  Driveway is a "last-in, first-out" stack. of course

Driveway is a "last-in, first-out" stack. Of course, when a car owner retrieves a vehicle that wasn't the last one in, the cars blocking it must temporarily move to the street so that the requested vehicle can leave. Write a program in Java that m..

  Instantiate a non-default orderprocessor object

Assignment you will need to instantiate (creat*) object(s) and invoke their instance methods to perform different tasks. The program is to keep track

  A program called invoice that will prompt the user for items

write a program called invoice that will prompt the user for items on and invoice and then print the total of the invoice

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