Question: In Java .. Stream cipher with the Blum-Blum-Shub CSPRNG Write a program that: Takes as input a plaintext that is a sequence of bits represented
In Java ..
Stream cipher with the Blum-Blum-Shub CSPRNG Write a program that:
- Takes as input a plaintext that is a sequence of bits represented as a string of zeroes and ones
- Using the Blum-Blum-Shub CSPRNG written in the last assignment and initialized as shown in the textbook, generate a sequence of key bits represented as a string of zeroes and ones with the same length as the input string
- Create a ciphertext string of ones and zeroes where each bit is the exclusive-or of the corresponding bits in the plaintext and key strings
- Print the ciphertext string as a sequence of bits in groups of 4
You can test your program with this plaintext string, which is the word SECURE in ASCII:
0101 0011 0100 0101 0100 0011 0101 0101 0101 0010 0100 0101
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
