Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Electronic Code Book

created by AT

(idea) by AT (4 mon) (print)   ?   (I like it!) Tue Dec 03 2002 at 22:03:48

Electronic Code Book, often abbreviated to ECB, is a mode of operation used with block ciphers. Block ciphers, such as DES or Blowfish, encrypt a block of plaintext, usually 64-bits in length, into a block of ciphertext of the same length.

In ECB mode, each block of plaintext will, given one particular key, always be encrypted into the same ciphertext. Thus, you could have a code book to map each ciphertext block into its plaintext equivalent. Of course, you need a separate code book for each key. ECB can be considered the default mode for block ciphers; other modes take additional steps so that plaintext will be encrypted differently depending on where it appears in a stream.

ECB is not a good choice for computer encryption. It might make sense if you are doing decryption by hand, but ECB makes any algorithm highly suseptible to dictionary attacks. An eavesdropper can just as easily build his or her own code book and guess at the plaintext based on frequencies; I'm no cryptographer, but I'm sure there are lots of more sophisticated attacks, too.

Some situations where ECB might be useful are:

  • where the encryption or decryption of blocks need to be parallelized
  • where an unreliable transport (e.g. UDP) is being used, and the plaintext needs be recoverable even if a block is lost
Even in these situations, techniques like salting the data or chaining off a counter are recommended.

The most common alternative to ECB mode is Cipher Block Chaining, which adds information from the previous block into the encyption of a block. This in turn means that the same plaintext will have different ciphertext at different points within the stream.


printable version
chaos

Steganography in E2 Signal to meta-signal ratio Rijndael One Time Pad
DES semantic security Electronic Cookbook The Code Book
Blowfish Block cipher AES serpent
Ross Anderson Bruce Schneier Skipjack UDP
Dictionary Attack
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Nodes your grandpa would have liked:
seven segment display
Cashmere
Attention
The Myth of the Liberal Media
Valerie Solanas
Mohs hardness scale
I don't want to fall so easily
Dropped down, pulled out
Moulin Rouge
Justice
They hate us because we're wonderful
Around nine PM my heart was breaking so I went to bed early to listen to it happen.
nu-metal
New Writeups
a8ksh4
regret(idea)
Heisenberg
Editor Log: July 2008(log)
sam512
halfway homes, catacombs, twilight zones(fiction)
Timeshredder
The Texas UFO Crash of 1897(event)
Heitah
The Dark Knight(review)
ignis_glaciesque
Uppsala(place)
ignis_glaciesque
diffusion of responsibility(idea)
TheOrientalAfrican
The Soft Meadow of my Childhood(event)
BookReader
The Dragon Slayers(fiction)
kohlcass
religiously fashionable(review)
Pavlovna
waulking song(thing)
tentative
Stick Man(poetry)
Ereneta
The Fight with the Snapping Turtle: Or, the American St. George(poetry)
sitaraika
Fog and fire(personal)
MonoliTheory
She sobs in response(fiction)
This page courtesy of The Everything Development Company