Skill 5.2.6

Cryptographic attacks and cryptanalysis

Key Concepts

Brute force tries every key. Known-plaintext attacks use pairs of plaintext and ciphertext; chosen-plaintext attacks let the attacker encrypt chosen inputs; ciphertext-only attacks have only ciphertext. Frequency analysis breaks simple substitution ciphers. The birthday attack exploits the probability of hash collisions, which is why digests must be long.

Side-channel attacks measure timing, power use or electromagnetic emissions. Downgrade attacks force the use of weaker protocols or ciphers. Replay attacks resend captured valid messages. Rainbow table and dictionary attacks target password hashes. Many real attacks target implementation flaws and key management rather than the mathematics.