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