Skip to content

pys07/Caesar-Cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Caesar Cipher - Encrypt & Decrypt Text in Python πŸ›‘οΈ

This is a Python implementation of the classic Caesar Cipher encryption technique. The program allows users to encrypt and decrypt text by providing a custom shift value.

✨ Features ✨

  • Encrypt any text using Caesar Cipher
  • Decrypt text back to original form
  • Customizable shift values
  • User-friendly terminal interface

πŸ§ͺ How It Works

The Caesar Cipher is a type of substitution cipher where each letter in the plaintext is shifted a certain number of places down the alphabet. For example, with a shift of 3:

  • A β†’ D
  • B β†’ E
  • Z β†’ C

You can also reverse the process to decrypt.

Getting Started

πŸ“‹ Prerequisites

  • Python 3.x installed on your system

πŸ› οΈ How to Run

  1. Clone this repository:
git clone https://github.com/pys07/PRODIGY_CS_01.git
cd PRODIGY_CS_01
  1. Run the script:
python caesar_cipher.py
  1. Follow the on-screen instructions to:

    • Enter your message
    • Provide a shift value
    • Choose encryption or decryption

πŸ–₯️ Example Output

Welcome to the Caesar Cipher Program!
Enter your message: hello world
Enter the shift key (integer): 3
Encrypt or Decrypt? (e/d): e

Result (encrypted message):
khoor.zruog

▢️ Watch Demo


πŸ“‚ Project Structure

PRODIGY_CS_01/
β”œβ”€β”€ caesar_cipher.py
└── README.md

✍️ Author

Made with β™₯ by Payal Samant

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages