| |
Binary values assigned to each character |
| Ciphertext | M | A | P | G |
|---|
| Ciphertext Binary Values | 1100 | 0000 | 1111 | 0110 |
| One-Time Pad | F | A | M | C |
|---|
| Pad Binary Values | 0101 | 0000 | 1100 | 0010 |
| |
Result of a bitwise XOR operation between the two binary values |
| value1 | 1100 | 0000 | 1111 | 0110 |
| value2 | 0101 | 0000 | 1100 | 0010 |
| value1 XOR value2 | 1001 | 0000 | 0011 | 0100 |
| |
Characters assigned to each resulting binary value |
| Plaintext Binary Values | 1001 | 0000 | 0011 | 0100 |
| Plaintext | J | A | D | E |
|---|