Programming Assignment #3Encrypting Network Traffic Using RSA1. IntroductionCryptography is a key element in preserving confidentiality; it is used to scramble data such that it cannot be easily read by anyone except the intended receiver. In this programming assignment, you will use RSA to encrypt network traffic between a client and a server. 2. DetailsYou will use the networking API of your programming language for this assignment, such as java.net in Java or socket in Ruby. 3. What You Have to DoThe assignment is broken down into two main parts, a client and a server. You will develop an echo server and a client that sends commands to it and listens for the commands received from the server. The server and the client each have their own pair of keys, public and private, that will be used to encrypt communication. 3.1 Client (40%)The client will use the server's public key to encrypt a message then send it to port 8080 of the server. The client then listens for an echo from the server; when it receives the echo it will print it to standard output, then decrypt it using its own private key and print the result to standard output. The result should be identical with the original message that was encrypted by the client. 3.2 Server (45%)The server will listen to port 8080 for messages from the client; when a message is received, the server will do the following:
3.3 KeysFor this assignment you will use the following keys:
Example (the $ sign is the command line prompt):
$ ./server
$ ./client 34923459234099
3.4 ResultsFill out the empty cells in the table below. In those cases where you have to choose a client message, make sure you choose one that has at least 10 characters.
3.5 Extra Credit (10%)Find the prime numbers p and q used to calculate the client and server keys.
3.6 Required Document (5%)In addition to your source code and your output you are required to submit a memo to your instructor that is flawlessly written. No spelling errors. No grammatical errors, etc. If the document is deemed unprofessional, e.g. a significant number of grammatical or spelling errors, then it will be assigned a grade of zero. If you're not sure about the format for a memo, then just search for "memo format" on Google. Your memo should state clearly the status of the assignment. Is it done or not? Does it meet all of the requirements? If anything is missing then state clearly what is missing from your work. Failure to give a status for the assignment will result in a grade of zero for the entire assignment. Providing a status that's false or significantly misleading will also result in a zero for the entire assignment. Make sure your document is well-written, succinct, and easy to read. If you encountered problems with the assignment, then provide a detailed description of those problems and the solution(s) you found. 3.7 Assignment Submission (10%)You are required to submit your work online, using the Blackboard. Late work will be accepted, however it is subject to late penalties as described in the syllabus. Here are the requirements for your submission:
$Id: programmingAssignment-3.html,v 1.3 2010/01/31 01:40:35 virgil Exp $ |