Information & Cyber Security
Department of Computer Science & Engineering, S.B.J.I.T.M.R., Nagpur
Practical No.1
AIM :To demonstrate classical cipher.
OBJECTIVES:
● To implement one of the encryption technique
● To use one of the substitution technique
● To implement classical cipher
THEORY:
In cryptography, a Caesar cipher, also known as a Caesar’s cipher, the shift cipher, Caesar’s code or
Caesar shift, is one of the simplest and most widely known encryption techniques. It is a type of
substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of
positions down the alphabet. For example, with a shift of 3, A would be replaced by D, B would
become E, and so on. The method is named after Julius Caesar, who used it to communicate with
his generals.
Example:
The transformation can be represented by aligning two alphabets; the cipher alphabet is the plain
alphabet rotated left or right by some number of positions. For instance, here is a Caesar cipher
using a left rotation of three places (the shift parameter, here 3, is used as the key):
Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Cipher: DEFGHIJKLMNOPQRSTUVWXYZABC
When encrypting, a person looks up each letter of the message in the “plain” line and writes down
the corresponding letter in the “cipher” line. Deciphering is done in reverse.
Plaintext: the quick brown fox jumps over the lazy dog
Ciphertext: WKH TXLFN EURZQ IRA MXPSV RYHU WKH ODCB GRJ