In this video we discuss the concepts of an S-Box and P-Box in cryptography. They are fundamental components in constructing block ciphers.
The code for the P-Box has a bug in it since it does not pad with zeros.
The code for the P-Box in this video is good for intuition but it is not the best approach.
Please see my newer video on "The P-Box in Cryptography" for a proper way to code a general P-Box.
[ Ссылка ]
![](https://i.ytimg.com/vi/eAKi_f5Vqzo/maxresdefault.jpg)