Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE CODE IN JAVA In this assignment, you will implement encrypted communications between two parties, Alice and Bob, and evaluate the performance of AES and

PLEASE CODE IN JAVA

In this assignment, you will implement encrypted communications between two parties, Alice and Bob, and evaluate the performance of AES and RSA under different parameters. For simplicity, Alice and Bob will be simulated by two programs running on the same computer. When Alice sends a message to Bob, she writes the message to a file; Bob receives the message through reading from the file. (If you know socket/network programming, you can also directly implement socket/network communications between the two.) Part 1: Implement encryption and decryption using AES with 192-bit key. Assume that Alice and Bob already have a shared secret key k (e.g., they can read the key from the same file). Alice encrypts an 18-byte message m (the message is manually input from command line), and writes the ciphetext into a file named ctext. Bob reads the ciphertext from the file, decrypts it, and prints the message m. The encryption should use the CBC mode.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Questions on machine learning

Answered: 1 week ago

Question

1. Why do people tell lies on their CVs?

Answered: 1 week ago

Question

2. What is the difference between an embellishment and a lie?

Answered: 1 week ago