ECB(Electric Codebook)

ECB is a method that divides a message into multiple blocks and encrypts each block individually.

Since encryption and decryption operations are independent of each other, they can be processed in parallel.

However, because all blocks use the same encryption key, it is vulnerable to security risks.


ECB mode Encrytion

  • Divide the plaintext into fixed block sizes (e.g., 128 bits).
  • Represent each block as .
  • Encryption:
  • Combine all ciphertext blocks in order to generate the final ciphertext .

ECB mode Decrytion

  • Divide the ciphertext into fixed block sizes.
  • Represent each block as .
  • Decryption:
  • Combine the decrypted plaintext blocks to generate the final plaintext .

Definitions

  • : Encryption function with key
  • : Decryption function with key