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-CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” CaesarJaw

πŸ“œ Description

This C++ program 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 πŸ’‘

✨ Features

  • πŸ” Encryption (Crypt): Encrypts a given text using a specified key.
  • πŸ”“ Decryption (UnCrypt): Decrypts an encrypted text using a specified key.
  • πŸ•΅οΈ Determine Shift Key: Finds the encryption key by comparing original and encrypted text.
  • 🎭 Brute-Force Decryption: Attempts decryption by trying all possible shift keys.

πŸš€ Usage

Run the program and select an option: 1️⃣ Encrypt Text: Enter a switch key and the text to encrypt. 2️⃣ Decrypt Text: Enter a switch key and the text to decrypt. 3️⃣ Find Shift Key: Provide an encrypted and decrypted text to determine the shift key. 4️⃣ Brute-Force Decryption: Enter an encrypted text and see all possible decrypted results.

πŸ› οΈ Compilation & Execution

To compile the program using g++, run:

g++ -o cryptography_tool main.cpp

To execute:

./cryptography_tool

πŸ“ Example

πŸ” Encrypting a message

Enter Switch Key: 3
Please enter text: Hello123
Encrypted: Khoor456

πŸ”“ Decrypting a message

Enter Switch Key: 3
Please enter text: Khoor456
Decrypted: Hello123

πŸ”‘ Determining the shift key

Please enter Crypt Text: Khoor456
Please enter UnCrypt Text: Hello123
Switch Key: 3

🀝 Contributions

Feel free to fork the repository and contribute improvements via pull requests. πŸš€

πŸ“œ License

This project is open-source and free to use. πŸŽ‰

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