Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In cryptography,
the avalanche effect refers to a desirable property of cryptographic
algorithms, typically block ciphers and cryptographic hash functions.
The avalanche effect is evident if, when an input is changed slightly
(for example, flipping a single bit) the output changes significantly
(e.g., half the output bits flip). In the case of quality block ciphers,
such a small change in either the key or the plaintext should cause a
drastic change in the ciphertext. The actual term was first used by
Horst Feistel, although the concept dates back to at least Shannon's
diffusion.If a block cipher or cryptographic hash function does not
exhibit the avalanche effect to a significant degree, then it has poor
randomization, and thus a cryptanalyst can make predictions about the
input, being given only the output. This may be sufficient to partially
or completely break the algorithm. Thus, the avalanche effect is a
desirable condition from the point of view of the designer of the
cryptographic algorithm or device.