Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

🧙 Gandalf's Caesar Cipher Tool

A Python cryptography tool that encrypts, decrypts, and brute force cracks Caesar Cipher messages — delivered with commentary from Gandalf the Grey. Built as part of a cybersecurity learning journey.


🔐 What is a Caesar Cipher?

One of the oldest encryption techniques in history — used by Julius Caesar himself to send secret military messages. Every letter in a message is shifted by a fixed number of positions in the alphabet.

Example with shift of 3: A → D B → E Hello → Khoor

To decrypt, simply shift back by the same number. The shift value is the "key."


⚡ Features

Feature Description
Encrypt Convert any message into cipher text using a shift key
Decrypt Reverse a cipher text back to the original message
Brute Force Try all 25 possible shifts to crack an unknown cipher
Gandalf Mode In-character reactions from Gandalf for every operation

🛠️ Built With

Python


🚀 Usage

python caesarcipher.py

Then choose from the menu:

  1. Encrypt a message
  2. Decrypt a message
  3. Brute force crack a message
  4. Quit

🔑 Key Concepts Learned

  • ASCII values — how computers store characters as numbers (ord() and chr())
  • Modulo arithmetic — how the alphabet wraps around using % 26
  • Brute force attacks — why limited keyspaces are dangerous
  • Encryption vs Decryption — two sides of the same mathematical operation
  • Why Caesar Cipher is insecure — only 25 possible keys, crackable instantly

🧠 Why Caesar Cipher Matters for Cybersecurity

Caesar Cipher is not secure by modern standards — a computer can brute force all 25 possible keys in milliseconds. Modern encryption like AES-256 has 2²⁵⁶ possible keys — more than the number of atoms in the observable universe.

Understanding weak encryption helps you understand why strong encryption matters.


👤 Author

Ryangithub.laiyagushi.com/Patharx


"Keep your secrets well, and trust them only to the worthy." 🧙

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages