Cryptopals challenge 2.11: Distinguish ECB and CBC encryption
Hint: Use the plaintext XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, where the (arbitrarily chosen) byte X is repeated at least 48 = 3 &times; 16 times (so that, no matter how many random bytes are prepended to this plaintext, it will always cover at least two successive AES blocks).