avalancheeffect
The avalanche effect is a property of cryptographic algorithms in which a small change in the input—such as flipping a single bit—causes a substantial and unpredictable change in the output, typically affecting about half of the output bits. This behavior, called diffusion, is a core principle in secure design to ensure that each output bit depends on many input bits.
In practice, avalanche effects are desirable in block ciphers and hash functions. Within block ciphers, designers
Measuring avalanche involves perturbing the input and observing the Hamming distance between outputs, or performing statistical