Introduction

The Ancient Ciphers like Caesar Cipher , and the one time pad are famous examples of symmetric ciphers , these could further be classified into stream and block ciphers based on the way of processing the data i.e. processing the data in blocks or one character at a time.

Caesar Cipher

XOR

XOR operation defined by the symbol ⊕ , that operates on single bits or boolean values. Which is

1 ⊕ 1 = 0

1 ⊕ 0 = 1

0 ⊕ 1 = 1

0 ⊕ 0 = 0

Following are the arithmetic properties of the XOR operator :

  1. Associative : a⊕(b⊕c) = (a⊕b)⊕c

  2. Commutative : a ⊕ b = b ⊕ a

  3. Any bit XOR itself is 0: a ⊕ a = 0. If a is 0, then itʼs 0 ⊕ 0 = 0; if a is 1, then itʼs 1 ⊕ 1 = 0.

  4. Any bit XOR 0 is that bit again: a ⊕ 0 = a. If a is 0, then itʼs 0 ⊕ 0 = 0; if a is 1, then itʼs 1 ⊕ 0 = 1

    Untitled

One-Time Pad