https://www.youtube.com/watch?v=rALbHDgKEBE&list=PLy_2fgXkPiZt3oJcHalAWy9uhQ3wd2fTV&index=4

https://www.youtube.com/watch?v=X6aTyc1pG8I&list=PLy_2fgXkPiZt3oJcHalAWy9uhQ3wd2fTV&index=5

<aside> 💡

I’m confused about the lectures and their order; I’m sure Dr. Ayman explained this chapter tho and it’s included despite it was lecture 4 or not :)

</aside>

As we discussed earlier, we have two main types of encryption:

image.png


We’re working with data as bits, we don’t care about it was text, image or whatever

in block encryption, it’s 1 to 1 reversible mapping

image.png

A bijection is a mathematical function that maps every unique plaintext input to a unique ciphertext output, and vice versa, without any data loss or overlap.

There are $(2^b)!$ possible distinct mappings. (that’s a lot, yeah)

image.png


Before we go further, you should know that all encryption algorithms we discussed so far is Classical old, easy to break… from now on, we will be setting rules and build our way to the Modern encryption algorithms


Diffusion and Confusion

Terms introduced by Claude Shannon to capture the two basic building blocks for any cryptographic system

Shannon wanted to hide the statistical data/information from the ciphertext so he introduced 2 concepts: