Skip to content

This repository contains a Python project that demonstrates encryption and decryption using the Caesar Cipher algorithm. The project was developed as part of my cybersecurity internship at Prodigy Info Tech to understand basic encryption techniques and their role in securing data.

Notifications You must be signed in to change notification settings

tholumuzikhuboni/PRODIGY_CY_01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

Caesar Cipher Encryption and Decryption

This is a Python implementation of the Caesar Cipher, a simple encryption technique that shifts each letter in the plaintext by a specified number of places. The program supports both encryption and decryption of messages.

Features

  • Encryption: Shifts each letter in the text by a specified shift value to create an encrypted message.
  • Decryption: Reverses the shift to retrieve the original message.
  • Handles both uppercase and lowercase letters.
  • Leaves non-alphabetic characters unchanged.

How It Works

  • The program uses the ASCII values of characters to calculate the shifted positions.
  • Uppercase and lowercase letters are handled separately to maintain case sensitivity.
  • Non-alphabetic characters (e.g., numbers, spaces, punctuation) remain unaltered.

Prerequisites

  • Python 3.x installed on your system.

Usage

  1. Clone the repository (if applicable):
    git clone https://github.com/tholumuzikhuboni/PRODIGY_CY_01.git
    cd PRODIGY_CV_01
    
  2. Run the script:
    python caesar-cipher.py
    
  3. Follow the on-screen instructions:
    • Choose whether to encrypt or decrypt a message.
    • Enter the message to process.
    • Enter a shift value (integer).

Example

Encryption

Input:

  • Operation: encrypt
  • Message: Hello, World!
  • Shift: 3

Output:

Encrypted message: Khoor, Zruog!

Decryption

Input:

  • Operation: decrypt
  • Message: Khoor, Zruog!
  • Shift: 3

Output:

Decrypted message: Hello, World!

About

This repository contains a Python project that demonstrates encryption and decryption using the Caesar Cipher algorithm. The project was developed as part of my cybersecurity internship at Prodigy Info Tech to understand basic encryption techniques and their role in securing data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages