Skip to content

CrackCaesar is a basic Caesar cipher breaking tool that uses brute-force to decrypt messages by trying all possible shift values. It helps visualize how classical substitution ciphers can be broken easily without the key, highlighting the weakness of simple encryption methods.

License

Notifications You must be signed in to change notification settings

akash-chaudhari-dev/CrackCaesar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Render Last commit

CrackCaesar

A minimal Flask web app to decode Caesar cipher messages into plaintext.


🔍 What is CrackCaesar?

CrackCaesar is a lightweight web interface that takes a Caesar-encrypted message and converts it into readable plaintext using brute-force or shift-based logic.


🚀 Features

  • 🌐 Simple web UI built with Flask
  • 🔓 Brute-force Caesar cipher decoding (all 25 shifts)
  • ✏️ Optional: Input known shift value (if you know it)
  • 📜 Clean, minimal output for readability

🛠️ Tech Stack

  • Python 3
  • Flask
  • HTML/CSS (minimal)

📂 Project Structure


/CrackCaesar/
├── app.py            # Main Flask app
├── templates/
│   └── index.html    # Web frontend
└── README.md


⚙️ How to Run Locally

  1. Clone the Repo
git clone https://github.com/akash1512485/CrackCaesar
cd CrackCaesar
  1. Create a Virtual Environment
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install Dependencies
pip install -r requirements.txt
  1. Run the App
python app.py

Then open your browser at http://127.0.0.1:5000/.


🧠 How It Works

  • If no shift is provided: the app attempts all 25 possible Caesar shifts and shows all possible plaintexts.
  • If a shift is given: it directly decrypts using that shift.

📝 Future Improvements

  • Detect English words to auto-pick most likely plaintext
  • Add dark mode toggle
  • Add encryption mode (reverse functionality)

Made with 💻 by Akash Chaudhari

About

CrackCaesar is a basic Caesar cipher breaking tool that uses brute-force to decrypt messages by trying all possible shift values. It helps visualize how classical substitution ciphers can be broken easily without the key, highlighting the weakness of simple encryption methods.

Topics

Resources

License

Stars

Watchers

Forks