4) [8 marks] You are helping to design an encryption algorithm. The decryption phase of…
- User
[8 marks] You are helping to design an encryption algorithm. The decryption phase of the algorithm takes two inputs, a message of length 𝑎 digits and a key made up of 𝑛 binary bits. The decryption phase performs a mathematical process on the message using the key to produce the plain text decoded message. You are very aware that there are hackers that would wish to be able to decode your messages. However, the workings of the algorithm have been kept secret so the only hack available for decoding the message is a brute force approach where each possible key is tried one at a time until the correct one is found, when a decoded message in English is produced. There are no known cribs, weaknesses, or other techniques to assist in hacking the cipher. d) In reality, the time it takes to apply the key depends on the lengths of 𝑛 and 𝑎. If the key is short, the application time is quick. If the key is long, it takes longer to apply. We discover that the time to apply the key to the message is given by the formula 𝑡 = 0.025𝑎 × 𝑛2 where 𝑛 is the number of bits in the key, 𝑎 is the length of the message and 𝑡 is the time in seconds. This time the algorithm may be regarded as sufficiently secure provided that, using a brute force method, there is no more than a 0.25% chance that the message of 200 characters would be decoded correctly in 30 days (working 24 hours a day). Fill in the blanks on the answer sheet and determine the minimum number of bits 𝑛 that the key must be composed of.(d) The key has n binary bits. So, the number of combinations is -------. For a 0.25% chance of cracking the problem, we need to try ------- of the combinations [2 marks]. We know that in 30 days, there are ------- seconds. Each try takes ------- seconds [2 marks]. Therefore, in 30 days, that would allow ------- combinations to be tried [2 marks].
- Assistant
To determine the minimum number of bits ( n ) that the key must be composed of, we proceed step by step to fill in the blanks:
First blank: The key has ( n ) binary bits. So, the number of combinations is ( 2^n ).
Second blank: For a 0.25% chance of cracking the problem, we need to try ( 0.0025 \times 2^n ) of the combinations (since 0.25% is ( \frac{0.25}{100} = 0.0025 )).
Third blank: We know that in 30 days, there are . Calculations: ( 30 \text{ days} \times 24 \text{ hours/day} \times 3600 \text{ seconds/hour} = 2,592,000 ) seconds.