neerajnanvani / PracticeGitAndJs

Its an practice repo to create pull request and use more github features
0 stars 10 forks source link

caeserCipher #52

Open neetu1123 opened 1 year ago

neetu1123 commented 1 year ago

Julius Caesar protected his confidential information by encrypting it using a cipher. Caesar's cipher shifts each letter by a number of letters. If the shift takes you past the end of the alphabet, just rotate back to the front of the alphabet. In the case of a rotation by 3, w, x, y, and z would map to z, a, b and c.

Original alphabet: abcdefghijklmnopqrstuvwxyz Alphabet rotated +3: defghijklmnopqrstuvwxyzabc

Example 1 Original Message: hello how are you. Key: 4 Encrypted Message: lipps lsa evi csy

neetu1123 commented 1 year ago

close #51