Skip to content

denatajp/caesar-chiper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

C++

image

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:

g++ -o caesar_cipher main.cpp

This will create an executable file named caesar_cipher.

Running the Program

To run the compiled program, use:

./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

Enter the text: Hello World
Enter the shift: 3
Encrypted text: Khoor Zruog
Decrypted text: Hello World

About

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.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages