Answer:
1. With this OTP we EX-OR the message with a one-time key (see below). Calculate the hex values for the following cipher:
Additional information:
If we take a message of "hello" and a key of "goodbye", we get: hello 01101000 01100101 01101100 01101100 01101111 goodbye 01100111 01101111 01101111 01100100 01100010 01111001 01100101 Now if we EX-OR them we get: 01101000 01100101 01101100 01101100 01101111 01100111 01101111 01101111 01100100 01100010 -------------------------------------------- 00001111 00001010 00000011 00001000 00001101 0 f 0 a 0 3 0 8 0 d So the result is 0f0a03080d Binary values To help you, here are a list of binary values: a chr(97) 01100001 b chr(98) 01100010 c chr(99) 01100011 d chr(100) 01100100 e chr(101) 01100101 f chr(102) 01100110 g chr(103) 0defend the east wall of the castle1100111 h chr(104) 01101000 i chr(105) 01101001 j chr(106) 01101010 k chr(107) 01101011 l chr(108) 01101100 m chr(109) 01101101 n chr(110) 01101110 o chr(111) 01101111 p chr(112) 01110000 q chr(113) 01110001 r chr(114) 01110010 s chr(115) 01110011 t chr(116) 01110100 u chr(117) 01110101 v chr(118) 01110110 w chr(119) 01110111 x chr(120) 01111000 y chr(121) 01111001 z chr(122) 01111010 With hex values, we take four bits at a time and convert the values: 0000 0 0001 1 0010 2 0011 3 0100 4 0101 5 0110 6 0111 7 1000 8 1001 9 1010 A 1011 B 1100 C 1101 D 1110 E 1111 F
Ans: