Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

//----- Run() ------------------------------------------------------------------

ID: 3532626 • Letter: #

Question

//----- Run() --------------------------------------------------------------------------------------------------
// Performs the testing of the Encryptor and Decryptor classes. We instantiate an Encryptor object and use it to
// encrypt the secret message stored in the file "plain.txt", writing the encrypted message to a file named
// "cipher.txt". Then we instantiate a Decryptor object and use it to decrypt the encrypted message stored in
// "cipher.txt", writing the output to a file named "plain-new.txt". To verify the program works correctly, load
// both "plain.txt" and "plain-new.txt" into the editor pane, and verify the two files are identical (except
// that "plain-new.txt" will not contain the whitespace that is in "plain.txt").
//--------------------------------------------------------------------------------------------------------------
void Test::Run()
{
    // Define and instantiate an Encryptor object named 'encryptor'. Calls the default constructor to initialize
    // the object.
    ???

    // Call the EncryptFile() function on 'encryptor' and pass "plain.txt" as the plaintext file name and
    // "cipher.txt" as the ciphertext file name.
    ???

    // Define and instantiate a Decryptor object named 'decryptor'. Calls the default constructor to initialize
    // the object.
    ???

    // Call the DecryptFile() function on 'decryptor' and pass "cipher.txt" as the ciphertext file name and
    // "plain-new.txt" as the new plaintext file name.
    ???
}



#ifndef DECRYPTOR_HPP
#define DECRYPTOR_HPP

#include <string> // For string class

using namespace std;

// Write the class declaration for the Decryptor class using the class diagram in the lab project document as
// a guide.
???

#endif





Explanation / Answer

Wait I am working on it....If I get late please rate me with 5 stars ...i will post the answer in comments........thanx