DEV Community

Himanshu
Himanshu

Posted on

Confusion vs Diffusion in cryptography

Confusion and Diffusion are essential concepts in cyrptography and network security. Both confusion and diffusion are cryptographic techniques that are used to stop the deduction of the secret writing key from the attacker.

The major differences between confusion and diffusion are as follows:

Confusion: Diffusion:

  1. In confusion the relationship between 1. In diffusion the the key and the ciphertext is obscured the relationship between the plaintext and ciphertext is obscured
  2. Confusion creates faint cipher text 2. Diffusion creates cryptic plain text
  3. Confusion uses substitution 3. Diffusion uses transposition
  4. Vagueness is increased in the 4. Redundancy is increased in resultant in the resultant
  5. Both stream and block cipher uses 5. Only block cipher uses confusion diffusion

Top comments (0)