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

  Design an object hierarchy

Design an object hierarchy and design your own UML class diagram to reflect the classes and relationship required by your program.

  Implement a class icecreamcone

Implement a class IceCreamCone with methods getSurfaceArea() and getVolumn(). In the constructor, supply the height and radius of the cone. Be careful when looking up the formula for the surface area

  Design a program that meets basic object-oriented constructs

Design a program that meets basic object-oriented constructs requirements. Code an application that exercises classes and objects.

  What is the java source filename extension

What is the Java source filename extension? What is the Java bytecode filename extension and write a Java statement to display the string The value is 100 to a user in a plain dialog box.

  Developing a software package that requires users

Imagine you are developing a software package that requires users to enter their own password - bool that returns whether or not a StringBuilder object

  Create a 2-dimensional array for the volume of concrete

Your Company constructs concrete hemispherical domes that range in diameter from 40 to 90 feet and increments of 5 feet.

  Values that occur just once

This list has some values that occur just once (1, 3, 4, 11, 13, 18), some values that occur twice (9, 16), some values that occur three times (14, 19) and a single value that occurs four times (7). Therefore, the call of list.maxCount() should re..

  Develop a similar class hierarchy for animals

Develop a similar class hierarchy for Animals. You can have whatever subclasses you think would be useful. Your hierarchy should have at least three levels (the top class, Animals, counts as the first level).

  Write a java program that declares an array alpha

Write a java program that declares an array alpha to 50 elements of type double. Initialize the array so that the first 25 numbers are equal to the square of the index variable, and the last 25 elements are equal to 3 times the index variable. Output..

  Create a complete java application that meets these

create a complete java application that meets these requirements1. the program has an opening comments section using

  Create the default junit tests using netbeans

Create the 'default' JUnit tests using NetBeans. Do this for the HomeAppliance class only; not for your JFrame GUI class.

  Build the gui layout of the game

Build the Build the GUI layout of the game in java.

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