In: Computer Science
Now let’s look at a more modern symmetric encryption. Assume that the algorithm for this system is to rotate the bits in the message right 4 positions, XOR the bits with the key, and rotate the bits 2 positions to the left.
a. The key is 5A
b. Using the key and the above algorithm, decrypt the following message which contains a name (given in hex): BD 7D FA BC 78 3C 3D. Remember that you’ll have to reverse the order and direction of operations in order to decrypt the name (i.e. Start by rotating 2 positions right). What is name (as it appears exactly in the message)?
c. The answer to Part b is the name of a moon. Find (and give in upper case) the name of planet which has Part (b) as a moon. Using the key and the above algorithm, encrypt the name of this planet (in upper case) and give your result in hex format (not ASCII).