Skip to content

SkillCraft Technology Task 01 : Caesar Cipher Encryption/Decryption

Notifications You must be signed in to change notification settings

kur1an/SCT_CS_01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Caesar Cipher Encryption/Decryption

This is a simple Python program that can encrypt and decrypt text using the Caesar Cipher algorithm. Users can input a message and a shift value to perform encryption and decryption

Usage

The program will prompt you to choose whether you want to encrypt or decrypt a message, and then ask for the text and the shift key.

Features

  • Encrypt text using a specified key.
  • Decrypt encrypted text using the same key.

Installation

  1. Clone this repository to your local machine.
  2. Ensure you have Python installed.
  3. Run the script using Python.

Running the Script

  1. Open your terminal or command prompt.
  2. Navigate to the directory where caesar_cipher.py is located.
  3. Run the script:
    python caesar_cipher.py
    

Example

Encrypting a message

$ python caesar_cipher.py

Do you want to encrypt or decrypt? e/d: e

ENCRYPTION MODE SELECTED

Enter the key: 3
Enter the text to encrypt: hello world
CIPHERTEXT: khoor zruog

Decrypting a message

$ python caesar_cipher.py

Do you want to encrypt or decrypt? e/d: d

DECRYPTION MODE SELECTED

Enter the key: 3.
Enter the text to decrypt: khoor zruog.
PLAINTEXT: hello world

About

SkillCraft Technology Task 01 : Caesar Cipher Encryption/Decryption

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages