| |
Binary values assigned to each character |
| Ciphertext | P | J | G | L |
|---|
| Ciphertext Binary Values | 1111 | 1001 | 0110 | 1011 |
| One-Time Pad | J | H | N | I |
|---|
| Pad Binary Values | 1001 | 0111 | 1101 | 1000 |
| |
Result of a bitwise XOR operation between the two binary values |
| value1 | 1111 | 1001 | 0110 | 1011 |
| value2 | 1001 | 0111 | 1101 | 1000 |
| value1 XOR value2 | 0110 | 1110 | 1011 | 0011 |
| |
Characters assigned to each resulting binary value |
| Plaintext Binary Values | 0110 | 1110 | 1011 | 0011 |
| Plaintext | G | O | L | D |
|---|