Compute the bitwise XOR between 10010100 and 11101010. 1) (1.5 point each, 6 tot
ID: 3886931 • Letter: C
Question
Compute the bitwise XOR between 10010100 and 11101010.
1) (1.5 point each, 6 total) Suppose a file named "letters" contains the following characters: aabbccddeeffgghhiijjkkll a. What is the name of the file created by the function call unzip file("letters"); b. Write the contents of the file written by the function call unzip_file("letters"); c. What is the name of the file created by the function call zip file("letters"); d. Write the contents of the file written by the function call zip file("letters"); (2 points) Compute the bitwise XOR between 10019100 and 11101010. 2) 3) (2 points) Suppose you are looking at the byte at index byte_pos in the file you are encrypting in a call to encrypt_file. Assuming std::string password stores the password you are using to encrypt, write the line of code to get the respective character to XOR with the current byte.Explanation / Answer
Answer:
10010100
XOR 11101010
--------------------
10000001
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.