Simple implementation of the Caesar Cipher encryption and decryption algorithm. The Caesar Cipher is a substitution cipher where each letter in the plaintext is shifted a certain number of places down or up the alphabet.
To compile and run this project, you need a C++ compiler such as GCC or Clang.
To compile the project, use the following command:
g++ -o caesar_cipher main.cpp
This will create an executable file named caesar_cipher
.
To run the compiled program, use:
./caesar_cipher
Enter the text you want to encrypt. Enter the shift value (an integer) for the Caesar Cipher.
The program will display:
- The encrypted text based on the provided shift value.
- The decrypted text, which should match the original input text.
Enter the text: Hello World
Enter the shift: 3
Encrypted text: Khoor Zruog
Decrypted text: Hello World