Skip to content

This project is a simple implementation of the Caesar Cipher algorithm in Python. The program allows users to input a message and a shift value to perform both encryption and decryption.

Notifications You must be signed in to change notification settings

kareem-diaa/Caesar-Cipher-Encryption-and-Decryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Caesar Cipher Program

A Python implementation of the Caesar Cipher for encrypting and decrypting text using a shift key.

How to Use

1. Clone the repository

git clone https://github.com/kareeemdiaahelal/caesar-cipher.git
cd caesar-cipher

2. Run the Program

python Code.py

3. Provide Input

  • Text: The text to encrypt or decrypt.
  • Shift Key: An integer between 1 and 26.
  • Operation: Choose between encrypting or decrypting.

Example

Encrypting:

Enter the text you want to encrypt or decrypt: Hello World
Enter the shift key (From 1 to 26): 3
Choice: 1
Result: Khoor Zruog

Decrypting:

Enter the text you want to encrypt or decrypt: Khoor Zruog
Enter the shift key (From 1 to 26): 3
Choice: 2
Result: Hello World

Requirements

  • Python 3.x or higher

About

This project is a simple implementation of the Caesar Cipher algorithm in Python. The program allows users to input a message and a shift value to perform both encryption and decryption.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages