An open API service indexing awesome lists of open source software.

https://github.com/b3ta-blocker/caesar-cipher

This Program uses a Caesar cipher to encrypt and decrypt messages. Users choose encoding or decoding, and specify a shift. It includes an ASCII art logo and an interactive loop.
https://github.com/b3ta-blocker/caesar-cipher

control-flow functions input-output lists logical-operators loops module-import string-manipulation

Last synced: 8 months ago
JSON representation

This Program uses a Caesar cipher to encrypt and decrypt messages. Users choose encoding or decoding, and specify a shift. It includes an ASCII art logo and an interactive loop.

Awesome Lists containing this project

README

          

# 🌐 Caesar Cipher Encryption and Decryption Tool 🛠️

A Python-based Caesar cipher encryption and decryption tool that allows users to encode and decode messages using the classic Caesar cipher algorithm.

## Features 🚀

- **Encryption:** Transform plain text messages into encoded messages by shifting letters in the alphabet.
- **Decryption:** Decode encoded messages back to the original text using the reverse shift.
- **User-Friendly Interface:** Interactive prompts guide users to input the cipher direction, message, and shift amount.
- **Alphabetic Wrapping:** Handles shifts that wrap around the alphabet, ensuring accurate encryption and decryption.
- **Non-Alphabetic Character Preservation:** Preserves spaces and special characters in the output, maintaining message integrity.

## Usage 📋

1. Run the Python script in your terminal or IDE.
2. Choose 'encode' to encrypt a message or 'decode' to decrypt a message.
3. Enter the message you want to encrypt or decrypt.
4. Input the shift amount (a positive integer) to determine the encryption/decryption key.
5. The program will display the encoded or decoded message.

## Example 🌟

```plaintext
Type 'encode' to encrypt, Type 'decode' to decrypt:
encode

Type your Message: hello world

Type the shift number: 3

The Encoded text is khoor zruog