Question: Implement a toy symmetric cryptosystem based on the following method. a. Keys are 16-bit randomly generated values. b. Messages are randomly generated strings with an

Implement a toy symmetric cryptosystem based on the following method.

a. Keys are 16-bit randomly generated values.

b. Messages are randomly generated strings with an even number of characters. (Valid characters are upper and lower case letters, as well as spaces.) One can always add a blank at the end of an odd-length string.

c. The encryption of a message M of length n (in bytes) is given by where the key K is repeated n/2 times.

E (M) = M (K || K || K )

d. The decryption algorithm for a ciphertext C is the same as the encryption algorithm: Implement a brute-force decryption attack for this cryptosystem and test it on randomly generated English text messages. Automate the process of detecting whether a decrypted message is English text.

Instruction:

You should use Java programming language to do this assignment.

E (M) = M (K || K || K )

Step by Step Solution

3.42 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To implement the toy symmetric cryptosystem described follow these steps using Java Step 1 Key and Message Setup Generate a 16bit random key Generate ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!