Question: PROGRAMS MUST BE IN JAVA 3. Write a program of a encryption system as follows. First use the program in 1 to translate the English
PROGRAMS MUST BE IN JAVA
3. Write a program of a encryption system as follows. First use the program in 1 to translate the English text to binary strings. Then divide the plaintext (binary strings) into blocks of 16 bitstrings. Each block is divided into Lo and Ro where Lo comprises the first 8 bits and Ro the last 8 bits. Then use the following iterations for 1 Sis2, where f is defined in 2: Li R-1 Ri L-1 f(Ri-1,Ki). The key is a 24-bit binary string. The first round key uses the first 12 bits and the second round key uses the last 12 bits. The output (ciphertext block) is L2R2. 4. Suppose the plaintext is "how do you like computer science" and the key is {101101010010100101101011). Use the above programs to compute the ciphertext. The ciphertext is written in English letters from the correspondence described in 1.). 3. Write a program of a encryption system as follows. First use the program in 1 to translate the English text to binary strings. Then divide the plaintext (binary strings) into blocks of 16 bitstrings. Each block is divided into Lo and Ro where Lo comprises the first 8 bits and Ro the last 8 bits. Then use the following iterations for 1 Sis2, where f is defined in 2: Li R-1 Ri L-1 f(Ri-1,Ki). The key is a 24-bit binary string. The first round key uses the first 12 bits and the second round key uses the last 12 bits. The output (ciphertext block) is L2R2. 4. Suppose the plaintext is "how do you like computer science" and the key is {101101010010100101101011). Use the above programs to compute the ciphertext. The ciphertext is written in English letters from the correspondence described in 1.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
