Question: How do you do this? Please edit your code on the following code I provided #include #include #include void encrypt_file( const std::string& filename, const std::string&

How do you do this?
Please edit your code on the following code I provided
#include #include #include
void encrypt_file(const std::string& filename, const std::string& password) { } PLEASE ONLY USE THESE THREE HEADERS I PROVIDED!!
I DO RATE THE ANSWER, PLEASE ANSWER IT AS ACCURATE AS POSSIBLE.
EXAMPLE: Consider a 16-byte file composed of all Os stored in a character array named data and a password string "cse250" data (hex representation): 00000000000000000000000000000000 data (as chars): e1ele1e1elele1e1elele1e1e elele password (as chars): cse250 Then we can encrypt by computing an XOR between the password and the data. Fortunately, computing 0 ^ x = x, so taking the XOR of our password with data that is all 0 will simply create repeated copies of our password. XOR: C se250 cs e 2 5 0 cse 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
