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
Which of these algorithms is a stream cipher?
- DES
- 3DES
- AES
- RC4
Show answer
Answer: D. RC4
RC4 generates a keystream that is XORed with the data. DES, 3DES and AES are block ciphers.
Which of these ciphers are broken or deprecated for new use?
- DES
- AES-256
- RC4
- AES-128
- 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.
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.
