In: Computer Science
- You (Eve) have intercepted two ciphertexts: c1 = 1111100101111001110011000001011110000110
c2 = 1111101001100111110111010000100110001000
You know that both are OTP ciphertexts, encrypted with the same
key. You know that either c1 is an encryption of alpha and c2 is an
encryption of bravo or c1 is an encryption
of delta and c2 is an encryption of gamma (all converted to binary
from ascii in the standard way). Which of these two possibilities
is correct, and why? What was the key k?
The second possibility is correct because after changing from ASCII to binary we get these values.
C1 = 1111100101111001110011000001011110000110 = delta
c2 = 1111101001100111110111010000100110001000 = gamma
c1
=============================================================
Ciphertext (sent the ciphertext to your recipient)
============================================================
75747c7560
============================================================
Hexadecimal
============================================================
64656c7461
1111100101
----------- xor
75747c7560
============================================================
Binary
============================================================
0110010001100101011011000111010001100001
0001000100010001000100000000000100000001
----------------------------------------- xor
0111010101110100011111000111010101100000
c2 =
============================================================
Ciphertext (sent the ciphertext to your recipient)
============================================================
76707d7d60
============================================================
Hexadecimal
============================================================
67616d6d61
1111101001
----------- xor
76707d7d60
============================================================
Binary
============================================================
0110011101100001011011010110110101100001
0001000100010001000100000001000000000001
----------------------------------------- xor
0111011001110000011111010111110101100000