Bit Rotation

Learn about Bit Rotation

Bit rotation is the process of shifting the digits of a binary number to the left or right. However, unlike a standard shift, where extra bits get discarded and are lost, bit rotation preserves those bits by appending them onto the front or back of the binary string depending on the direction being rotated. Bit rotation is often used in cryptography as a method to increase the diffusion of a cipher, which is to say increase the difference between different encrypted texts even when the original unencrypted messages are quite alike. Bit rotation is employed widely in modern encryption algorithms, and is a good concept to understand if you are interested in cryptography!