Vernam Cipher
Explore another version of the one-time pad known as the Vernam cipher.
We'll cover the following
Introducing the Vernam cipher
The most common one-time pad is the version that applies to binary plaintexts and keys (as opposed to the versions applied to letters of the alphabet and numbers from 1 to that we have just described). This version is often called the Vernam cipher.
The Vernam cipher can be created as follows:
-
Let the plaintext be a string of bits, , , …, (where means the th bit of the plaintext).
-
Randomly generate a key that consists of bits , , . . ., .
-
Encrypt plaintext bit by XORing it to key bit to obtain ciphertext bit . Mathematically put:
This process is depicted in the figure given below:
Get hands-on with 1200+ tech skills courses.