Skip to content

A simple Python program that implements the Caesar cipher for encryption and decryption of text. This project allows users to input a message and shift key to either encrypt or decrypt the message. It's a basic yet effective example of classical cryptography.

Notifications You must be signed in to change notification settings

imDarshanGK/CaesarCipher-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Caesar Cipher in Python πŸ”

Overview

This repository contains a Python implementation of the Caesar Cipher encryption algorithm. The Caesar Cipher is a substitution cipher where each letter in the plaintext is shifted by a fixed number of positions in the alphabet.

Features

  • Encrypts and decrypts text using a Caesar Cipher.
  • Preserves the original case (uppercase/lowercase) of the input message.
  • Easy to use with user input.
  • Simple Python implementation for educational purposes.

How It Works

  1. Encryption: Each letter in the plaintext is shifted by a specified number of positions down the alphabet.
  2. Decryption: Each letter in the ciphertext is shifted back by the same number of positions.
  3. Case Preservation: The program retains the original case of the input message, ensuring proper nouns and formatting are preserved.

About

A simple Python program that implements the Caesar cipher for encryption and decryption of text. This project allows users to input a message and shift key to either encrypt or decrypt the message. It's a basic yet effective example of classical cryptography.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages