Caesar Cipher
Caesar Cipher
Presented By:
1. Ali (2020-SE-33)
2. Hashar Ahmed (2020-SE-12)
Terms:
Plaintext
Is a message to be communicated.
Ciphertext
A disguised version of a plaintext.
Encryption
The process of turning Plaintext into Ciphertext.
Decryption
The process of turning Ciphertext into Plaintext.
Caesar Cipher
One of the earliest known examples of substitution cipher.
Said to have been used by Julius Caesar to communicate with his army (secretly).
Each character of a plaintext message is replaced by a character n position down in the alphabet.
A B C D E … … X Y Z
D E F G H … … A B C
Caesar Cipher
Suppose the following plaintext is to be encrypted:
ATTACK AT DAWN
By shifting each letter by 3, to the right. Then the resulting ciphertext would be:
DWWDFN DW GDZQ
A B C D E … … X Y Z
D E F G H … … A B C
Caesar Cipher
One could shift other than 3 letters apart.
The offset (Number of shifts) is called the "Key"
Decryption Process:
Given that the key is known, just shift back N letter to the left.
Example:
Ciphertext: WJYZWS YT GFXJ
Key used: 5