{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lect14 - DS CS 11002 Computer Sc Engg IIT Kharagpur $ 1...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
PDS: CS 11002 Computer Sc & Engg: IIT Kharagpur 1 & $ % Programming With Characters Lect 14 Goutam Biswas
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
PDS: CS 11002 Computer Sc & Engg: IIT Kharagpur 2 & $ % Caesar cipher Caesar cipher is a simple technique of encryption of plain text by replacing every character in the plain text by a character fixed number of positions down the list of the alphabet. The last characters are folded back to the beginning. Lect 14 Goutam Biswas
Background image of page 2
PDS: CS 11002 Computer Sc & Engg: IIT Kharagpur 3 & $ % Shift: 5 Original Encrypted ‘A’ ‘F’ ‘B’ ‘G’ · · · · · · ‘V’ ‘A’ ‘W’ ‘B’ ‘X’ ‘C’ ‘Y’ ‘D’ ‘Z’ ‘E’ Lect 14 Goutam Biswas
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
PDS: CS 11002 Computer Sc & Engg: IIT Kharagpur 4 & $ % Caesar cipher Write a C program that will read a text stream (either from stdin or from some redirected text file) and will encrypt the English alphabet, ‘A’, · · · , ‘Z’, ‘a’, · · · , ‘z’ , using Caesar cipher . The value of shift should be within 1 - 10 and will be decided by the rand() function.
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}