0

I am a beginner in this field, and I was thinking about brute force strategies to break symmetric key encryption.

Let's say we have a block cipher in CTR mode and the key is 56 bits in size. What would a process of finding the key look like (brute forced strategy)?

Patriot
  • 3,132
  • 3
  • 18
  • 65
anon
  • 1

1 Answers1

2

Brute forcing the key simply means iterating over all the possible keys, assuming you know the mode of operation (in this case CTR) and the IV. Then if a likely plaintext is found then you've found your key.

It's always possible you find the wrong key, but the chances of you doing so diminishes with the amount of bits known of the plaintext. Usually you know enough about the plaintext to do so.

For instance, you can use the fact that the highest order bit of ASCII is always zero, most files have specific headers, you can do frequency analysis, etc. etc. If you perform an attack you might as well assume you know, say, 4 blocks of plaintext. In that case you can be next to certain that you found the right key to decrypt the rest.

Note that brute force attacks are very easy to parallelize; just split the key space and perform the decrypt / validation phase in separate threads.

Maarten Bodewes
  • 92,551
  • 13
  • 161
  • 313