| |
Binary values assigned to each character |
| Ciphertext | O | C | J | P | P | A |
|---|
| Ciphertext Binary Values | 1110 | 0010 | 1001 | 1111 | 1111 | 0000 |
| One-Time Pad | K | P | L | B | M | E |
|---|
| Pad Binary Values | 1010 | 1111 | 1011 | 0001 | 1100 | 0100 |
| |
Result of a bitwise XOR operation between the two binary values |
| value1 | 1110 | 0010 | 1001 | 1111 | 1111 | 0000 |
| value2 | 1010 | 1111 | 1011 | 0001 | 1100 | 0100 |
| value1 XOR value2 | 0100 | 1101 | 0010 | 1110 | 0011 | 0100 |
| |
Characters assigned to each resulting binary value |
| Plaintext Binary Values | 0100 | 1101 | 0010 | 1110 | 0011 | 0100 |
| Plaintext | E | N | C | O | D | E |
|---|