Skip to content

Commit ced40ad

Browse files
committed
Made Changes to Readme.md
1 parent 13fbd04 commit ced40ad

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Caesar cipher/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
11
# Caesar cipher
22
The Caesar Cipher technique is one of the earliest and simplest methods of encryption technique.
3+
It’s simply a type of substitution cipher, i.e., each letter of a given text is replaced by a letter with a fixed number of positions down the alphabet. For example with a shift of 1, A would be replaced by B, B would become C, and so on. The method is apparently named after Julius Caesar, who apparently used it to communicate with his officials.
4+
5+
Thus to cipher a given text we need an integer value, known as a shift which indicates the number of positions each letter of the text has been moved down.
6+
7+
Examples :
8+
Text : ATTACKATONCE
9+
Shift: 4
10+
Cipher: EXXEGOEXSRGI
11+
12+
Algorithm for Caesar Cipher:
13+
Input:
14+
15+
1. A String of lower case letters, called Text.
16+
2. An Integer between 0-25 denoting the required shift.

0 commit comments

Comments
 (0)