Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”‘ Caesar Cipher Tool

A simple Python implementation of the Caesar Cipher β€” one of the oldest known encryption techniques β€” built to understand the fundamentals of classical cryptography.


πŸ“– About

This program encrypts text using the Caesar Cipher, a substitution cipher where each letter is shifted a fixed number of positions down the alphabet. This version uses a fixed shift of 4 (a β†’ e, b β†’ f, c β†’ g, and so on).

While trivially easy to break by modern standards, understanding the Caesar Cipher is a foundational step into cryptography β€” it introduces core concepts like substitution and shifts that apply to far more complex encryption systems used today.


✨ Features

  • πŸ”’ Encrypts lowercase text using a fixed shift of 4
  • 🐍 Pure Python β€” no external dependencies

⚠️ Current Limitations

  • The shift is fixed at 4 β€” not currently customizable by the user
  • Encrypt only β€” no decrypt function yet

πŸš€ Getting Started

# Clone the repo
git clone https://github.com/adwaithsuvish/caesar-cipher.git
cd caesar-cipher

# Run it
python main.py

You'll be prompted to enter text, and the encrypted result will be printed.


πŸ’‘ Example

Enter the text to encrypt: hello
Output: lipps

πŸ› οΈ Built With

Python


🧩 Planned Improvements

  • [βœ”] Support uppercase letters, spaces, and punctuation
  • [βœ”] Let the user choose a custom shift value instead of a fixed one
  • Add a decrypt function
  • Add a brute-force mode to crack messages without knowing the shift

πŸ“Œ Why I Built This

Classical ciphers like this are the starting point for understanding modern cryptography β€” before working with real algorithms (AES, RSA, etc.), it helps to understand basic ideas like substitution and shifting, and why simple ciphers like this are easy to break.


πŸ“„ License

No license specified yet.

About

Caesar Cipher created using python

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages