https://github.com/denatajp/caesar-chiper
Implementation of Caesar Chiper in encrypts and decrypts text by shifting letters by a user-defined value. It takes input text and a shift value, applies the shift to encrypt, and reverses the shift to decrypt. The program demonstrates basic encryption and decryption using this simple technique.
https://github.com/denatajp/caesar-chiper
caesar-cipher chiper cryptography
Last synced: about 2 months ago
JSON representation
Implementation of Caesar Chiper in encrypts and decrypts text by shifting letters by a user-defined value. It takes input text and a shift value, applies the shift to encrypt, and reverses the shift to decrypt. The program demonstrates basic encryption and decryption using this simple technique.
- Host: GitHub
- URL: https://github.com/denatajp/caesar-chiper
- Owner: denatajp
- Created: 2024-09-05T09:54:48.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-05T10:26:59.000Z (9 months ago)
- Last Synced: 2025-04-04T05:19:10.676Z (2 months ago)
- Topics: caesar-cipher, chiper, cryptography
- Language: C++
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README


# Caesar ChiperSimple 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.
# Prerequisites
To compile and run this project, you need a C++ compiler such as GCC or Clang.# Compilation
To compile the project, use the following command:```sh
g++ -o caesar_cipher main.cpp
```
This will create an executable file named `caesar_cipher`.# Running the Program
To run the compiled program, use:
```sh
./caesar_cipher
```
## Input
Enter the text you want to encrypt.
Enter the shift value (an integer) for the Caesar Cipher.
## Output
The program will display:
- The encrypted text based on the provided shift value.
- The decrypted text, which should match the original input text.# Example
```yaml
Enter the text: Hello World
Enter the shift: 3
Encrypted text: Khoor Zruog
Decrypted text: Hello World
```