Skip to content

prachi-cyber-tank/python-caesar-cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Caesar Cipher in Python

A simple command-line implementation of the Caesar cipher for basic text encryption and decryption, written in Python.

Features

  • Encrypts messages using a specified shift key.
  • Decrypts messages using the same shift key.
  • Handles both uppercase and lowercase letters.
  • Preserves spaces, numbers, and punctuation.

How to Run

  1. Make sure you have Python 3 installed.

  2. Clone this repository or download the CaesarCipher.py file.

  3. Open your terminal or command prompt.

  4. Navigate to the directory where CaesarCipher.py is located.

  5. Run the script with the following command:

    python CaesarCipher.py

Example Usage

--- Caesar Cipher Program ---

Choose an option:

Encrypt

Decrypt

Exit

1 Enter the message to encrypt: Hello, World! Enter the shift key (a number): 3

Ciphertext: Khoor, Zruog!

About

To implement Caesar Cipher for basic encryption and decryption in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages