Skip to content

CaesarJaw provides encryption and decryption functionalities using a simple shift cipher (Caesar cipher). It allows users to: βœ… Encrypt text πŸ“ βœ… Decrypt text πŸ”‘ βœ… Determine the shift key πŸ”Ž βœ… Attempt decryption without a known key πŸ’‘

License

Notifications You must be signed in to change notification settings

mohammedmehdio/CaesarJaw-PY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” CaesarJaw Encryption & Decryption

πŸ“Œ Description

This Python program provides functionality for encrypting and decrypting text using the Caesar cipher. It supports uppercase and lowercase letters, as well as digits, while leaving punctuation and spaces unchanged. The program also allows finding the shift key from encrypted and decrypted text and attempts to decrypt text without a known key by brute force.

✨ Features

βœ… Encrypt text using a specified shift key. βœ… Decrypt text using a specified shift key. βœ… Find the shift key from an encrypted and decrypted text pair. βœ… Brute-force decryption to find possible plaintext outputs without knowing the key.


πŸš€ Installation & Usage

πŸ“₯ Clone the Repository

To get started, clone the repository using Git:

git clone https://github.com/mohammedmehdio/CaesarJaw-PY.git
cd CaesarJaw-PY

πŸ›  Run the Program

Make sure you have Python installed, then run:

python main.py

πŸ“Œ Options

Once the script runs, select an option: 1️⃣ Encrypt a message. 2️⃣ Decrypt a message. 3️⃣ Find the shift key given an encrypted and decrypted text pair. 4️⃣ Try decrypting text without a key by brute force.


🎯 Example Usage

πŸ”’ Encryption

Input:

Enter Option (1,2,3 or 4): 1
Enter Shift Key (an integer): 3
Please enter text: Hello123

Output:

==> Output Result: Khoor456

πŸ”“ Decryption

Input:

Enter Option (1,2,3 or 4): 2
Enter Shift Key (an integer): 3
Please enter text: Khoor456

Output:

==> Output Result: Hello123

πŸ”‘ Finding the Key

Input:

Enter Option (1,2,3 or 4): 3
Please enter encrypted text: Khoor
Please enter decrypted text: Hello

Output:

Shift Key: 3

🀯 Decrypt Without Key (Brute Force)

Input:

Enter Option (1,2,3 or 4): 4
Please enter text to decrypt without a key: Khoor

Output:

Trying key 1: Jgnnq
Trying key 2: Ifmmp
Trying key 3: Hello
...

πŸ‘¨β€πŸ’» Authors

  • Mohammed Mehdi Boudir
  • Salah Eddine Rhazouni

πŸ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ’‘ If you find this project useful, don't forget to star ⭐ the repo!

About

CaesarJaw provides encryption and decryption functionalities using a simple shift cipher (Caesar cipher). It allows users to: βœ… Encrypt text πŸ“ βœ… Decrypt text πŸ”‘ βœ… Determine the shift key πŸ”Ž βœ… Attempt decryption without a known key πŸ’‘

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages