Brute Force Attack

As the name suggests, “Brute Force Attack”, the process is based on testing all possible keys until find the correct key. Let’s consider that the attacker finds out the correct key after trials.

We have 4 keys such as, k_1-(00), k_2-(01), k_3-(10), k_4-(11) where information entropy of the system is 2 bits (1 of the 4 keys is the correct key). Take a look at simplified information entropy article.

The attacker tries the first key and realizes that it is false. Now, system’s information entropy is log_2[3] (which is appr. 1.58). So, even if the attacker tries the wrong key, the probability of finding the right key is increasing. Moreover, information entropy of the system is decreasing whenever the attacker tries a key. Hence, the strength of the key is related to information entropy and the attacker’s effort.

As a result, with “n” bits long keys, there are 2^[n] possible keys to crack for the attacker. If the attacker succeeds in the first attack – it would be the best case – or last try – after 2^[n] tries. So, on average, there are 2^[n-1] possible keys for the attacker to try.


Basically, relies on studying and analyze the crypto-system in order to decipher the message without the key. The non-uniform key selection yields entropy reduction. Attacker may know which key(s) are more feasible than others.

In WW2, the nazis encrypted communication was provided with unbreakable enigma machine. Alan Turing and his crew noticed the most repeated word “heil hitler” and changed the history of the world. This might be the one of the most important events in the history of crypto-analysis.

Alan Turing

In order to provide perfect crypto-system, ciphertext shouldn’t provide any information about the plaintext i.e. cryptanalytically unbreakable. One-time pad achieves perfect secrecy. The entropy is great as the message entropy, even as the message grows. There are two practical challenges such as, key and randomness generation and key distribution and agreement. Especially used during the Russian – American cold war.

Resources: by Sang-Yoon Chang, Ph.D. —

O.S. Tapsin

One thought on “II. Information Entropy & Cryptography (Brute Force and Cryptanalysis)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s