0

Why using AES in ECB (Electronic Code Book) mode a bad idea? is CTR mode better? Given only these two can be used for parallelization.

CodesInChaos
  • 25,121
  • 2
  • 90
  • 129
tony9099
  • 333
  • 1
  • 4
  • 15

1 Answers1

3

ECB is bad because identical plaintext blocks result in identical ciphertext blocks. Encrypted data is therefore not pseudo-random.

This is how Tux looks like after ECB encryption:

ECB Tux

CTR mode doesn't have this problem. Data encrypted with CTR mode is pseudo-random and doesn't show any pattern. So CTR is much better.

CBC and CFB can also decrypt parallel, but not encrypt.

LightBit
  • 1,741
  • 14
  • 28