| |
Binary values assigned to each character |
| Ciphertext | K | L | E | N | H |
|---|
| Ciphertext Binary Values | 1010 | 1011 | 0100 | 1101 | 0111 |
| One-Time Pad | M | L | I | B | H |
|---|
| Pad Binary Values | 1100 | 1011 | 1000 | 0001 | 0111 |
| |
Result of a bitwise XOR operation between the two binary values |
| value1 | 1010 | 1011 | 0100 | 1101 | 0111 |
| value2 | 1100 | 1011 | 1000 | 0001 | 0111 |
| value1 XOR value2 | 0110 | 0000 | 1100 | 1100 | 0000 |
| |
Characters assigned to each resulting binary value |
| Plaintext Binary Values | 0110 | 0000 | 1100 | 1100 | 0000 |
| Plaintext | G | A | M | M | A |
|---|