際際滷

際際滷Share a Scribd company logo
1
XOR Cipher:
denotes the Exclusive OR operation,With this logic, a string of text can be
encrypted by applying the bitwise XOR operator to every character using a given key.
To decrypt the output, merely reapplying the XOR function with the key will remove the
cipher.
2
3
4
Binary 128 64 32 16 8 4 2 1
Plain text = Z 0 1 0 1 1 0 1 0
Key = 3 0 0 0 0 0 0 1 1
Cipher text= Y 0 1 0 1 1 0 0 1
5
Example 2:

More Related Content

XOR Cipher

  • 1. 1 XOR Cipher: denotes the Exclusive OR operation,With this logic, a string of text can be encrypted by applying the bitwise XOR operator to every character using a given key. To decrypt the output, merely reapplying the XOR function with the key will remove the cipher.
  • 2. 2
  • 3. 3
  • 4. 4 Binary 128 64 32 16 8 4 2 1 Plain text = Z 0 1 0 1 1 0 1 0 Key = 3 0 0 0 0 0 0 1 1 Cipher text= Y 0 1 0 1 1 0 0 1