0% found this document useful (0 votes)
6 views4 pages

Caesar and Shift Cipher Encryption Guide

Uploaded by

Rajesh Kumar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views4 pages

Caesar and Shift Cipher Encryption Guide

Uploaded by

Rajesh Kumar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Example:-

Algorithm:- For each plain text letter ‘p’ substitute cipher text letter ‘C’

C = E(p,k)mod26 = (p+k)mod26

p = D(C,k)mod26 = (C-k)mod26
Question:- Encrypt “cisco academy” using Caesar cipher

C = E(p,k)mod26 = (p+k)mod26
0 1

C=(2+3)mod26 26 5 26 27
C=5mod26 0 26

5 1
Plaintext c i s c o a c a d e m y
Ciphertext F L V F R D F D G H P B

Question:- Encrypt “meet me after the toga party” using Caesar cipher
cipher: PHHW PH DIWHU WKH WRJD SDUWB
Shift Cipher

Key 2,3,4,5,………..

Shift cipher with key = 3 Caesar cipher

Key = 4

Question:- Encrypt “meet me after the toga party” using Shift cipher

Advantage: Simple and easy to implement.

Disadvantages
1) The encryption and decryption algorithm are known
2) There are only 25 key to try (Vulnerable to Brute-force attack)
3) The language fo the plain text is known and easily recognized

You might also like