Skip to content

Hamidkarimi-h/caesar-cipher-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caesar Cipher Tool

A simple command-line tool written in Python for encrypting and decrypting text using the classic Caesar Cipher algorithm.

Features

  • Encrypt plaintext by shifting letters by a user-defined number.
  • Decrypt ciphertext back to the original text using the same shift.
  • Input validation to ensure the shift is a valid integer.
  • User-friendly command-line interface with options to encrypt, decrypt, or exit.

Getting Started

Prerequisites

  • Python 3.x installed on your system.

Installation

  1. Clone the repository or download the source code.
git clone https://github.com:Hamidkarimi-h/caeser-cipher-tool.git
cd caesar-cipher-tool
  1. No external dependencies are required.

Usage

Run the main program:

python main.py

Follow the on-screen instructions to:

  • Choose to encrypt or decrypt.
  • Enter the text.
  • Enter the shift amount.

Example

=== Caesar Cipher Tool ===

Choose your option:
    1) Encrypt
    2) Decrypt
    3) Exit
Your choice: 1
Enter the text to encrypt: Hello World!
Enter the shift amount (integer): 3
Encrypted text: Khoor Zruog!
----------------------------------------

Project Structure

caesar-cipher-tool/
│
├── main.py         # Main program with CLI interface
├── caesar.py       # Caesar cipher encryption and decryption logic
└── README.md       # Project documentation

License

This project is licensed under the MIT License.


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages