An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

![C++](https://img.shields.io/badge/c++-%2300599C.svg?style=for-the-badge&logo=c%2B%2B&logoColor=white)

![image](https://github.com/user-attachments/assets/5686c31f-dc53-4a7d-a1ad-93278cfa6688)
# Caesar Chiper

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.

# 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
```