Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 3

blur-text-image

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

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions

Question

=+ (b) Show that 10(1)- . Pn(x) 2 + - 9(x) 12 log 2

Answered: 1 week ago

Question

2. Identify conflict triggers in yourself and others

Answered: 1 week ago