/CaesarCipherUsingFiles

Encryption and Decryption of Caesar Cipher using Files

Primary LanguageJava

CaesarCipherUsingFiles

Encryption and Decryption of Caesar Cipher using Files

he Caesar cipher, also known as a shift cipher, is one of the simplest forms of encryption. It is a substitution cipher where each letter in the original message (called the plaintext) is replaced with a letter corresponding to a certain number of letters up or down in the alphabet.

Algorithm for Caesar Cipher:

Input:
Read content from a input file
A String of lower case letters, called Text.
An Integer between 0-25 denoting the required shift.
Procedure:
Traverse the given text one character at a time .
For each character, transform the given character as per the rule, depending on whether we’re encrypting or decrypting the text.
Output the new string generated.