Bitzu

CPSA ยท Cryptography for testers

Symmetric ciphers: DES, 3DES, AES and RC4

DES, 3DES, AES and RC4: key sizes, block vs stream and which are broken or deprecated.

Key points

  • Symmetric ciphers use one shared key.
  • DES: 64-bit block, 56-bit key, broken by brute force.
  • 3DES: DES applied three times; 64-bit block, open to Sweet32-style birthday attacks, deprecated.
  • AES: 128-bit block, 128/192/256-bit keys, current standard.
  • RC4: stream cipher, biased keystream, prohibited in TLS (RFC 7465).
  • Modes: ECB leaks patterns; use CBC with random IV or authenticated GCM.

Source: https://www.rfc-editor.org/rfc/rfc7465

Practice questions

Single choice

Which of these algorithms is a stream cipher?

  1. DES
  2. 3DES
  3. AES
  4. RC4
Show answer

Answer: D. RC4

RC4 generates a keystream that is XORed with the data. DES, 3DES and AES are block ciphers.

Select all that apply

Which of these ciphers are broken or deprecated for new use?

  1. DES
  2. AES-256
  3. RC4
  4. AES-128
  5. 3DES
Show answer

Answer: A. DES, C. RC4, E. 3DES

DES is brute-forceable, RC4 has keystream biases and is banned in TLS, and 3DES is deprecated due to its 64-bit block. AES-128 and AES-256 remain approved.

True or false

AES-256 uses a 256-bit block size.

Show answer

Answer: False

False. AES always has a 128-bit block; the 256 refers to the key length (128, 192 or 256 bits are the options).

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More CPSA topics in this module