Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are working on a program to add security to a database that consists of key-value pairs. You already have the database class, and the

image text in transcribedimage text in transcribed

You are working on a program to add security to a database that consists of key-value pairs. You already have the database class, and the application that uses it. You want to add the option to have security (encryption of the input to the data, and decryption of data from it), and do it without rewriting existing code. The code looks like this so far: class Seaxchkex /the "Key" of the key-value pair as noted above /7 You may assume it is fully defined elsewhere // (this is an interface) class DatabaseIF public: db virtual void write (searchKey, string value) = 0; // store pair in virtual string read (SearchKex) = 0; // returns the value class RealDatabase: public DatabaseIF / This class implements the DatabaseIE interface // Assume it is fully implemented. 3. (20) The database's interface looks like the above. Name the pattern to be used to implement encryption and decryption and write the code for it (pseudo code would be fine) and include a UML diagram of your design. You can't change the existing Databaseor Rea!Database code. You are working on a program to add security to a database that consists of key-value pairs. You already have the database class, and the application that uses it. You want to add the option to have security (encryption of the input to the data, and decryption of data from it), and do it without rewriting existing code. The code looks like this so far: class Seaxchkex /the "Key" of the key-value pair as noted above /7 You may assume it is fully defined elsewhere // (this is an interface) class DatabaseIF public: db virtual void write (searchKey, string value) = 0; // store pair in virtual string read (SearchKex) = 0; // returns the value class RealDatabase: public DatabaseIF / This class implements the DatabaseIE interface // Assume it is fully implemented. 3. (20) The database's interface looks like the above. Name the pattern to be used to implement encryption and decryption and write the code for it (pseudo code would be fine) and include a UML diagram of your design. You can't change the existing Databaseor Rea!Database code

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

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

7. Why can fixed cost be ignored in developing the EOQ?

Answered: 1 week ago

Question

Why We Form Relationships Managing Relationship Dynamics?

Answered: 1 week ago