8000 GitHub - Naeem-360/message_encode_decode
[go: up one dir, main page]

Skip to content

Naeem-360/message_encode_decode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ” Message Encoder & Decoder

Python License Security Terminal

A simple yet effective Python tool th 8F26 at encodes and decodes text messages using character manipulation and random letter injection for basic encryption.

๐ŸŒŸ Features

  • ๐Ÿ”’ Encode messages with a custom algorithm
  • ๐Ÿ”“ Decode previously encoded messages
  • ๐ŸŽจ Colorful terminal output for better readability
  • ๐Ÿ”„ Option to continue encoding/decoding multiple messages
  • ๐Ÿ›ก๏ธ Basic text scrambling for casual privacy

๐Ÿ“‹ Requirements

  • Python 3.x
  • termcolor library

๐Ÿš€ Installation

Clone the Repository

# Clone the repository
git clone https://github.com/Naeem-360/message_encode_decode.git

# Navigate to the project directory
cd message_encode_decode

Install Dependencies

# Install required packages
pip install termcolor

๐Ÿ’ป Usage

Run the script using Python:

python encode_decode.py

๐Ÿ” How It Works

Encoding Process

  1. Takes each word in your message
  2. For words with 3 or more characters:
    • Swaps the first and last character
    • Adds 3 random letters at the beginning
    • Adds 3 random letters at the end
  3. For words with fewer than 3 characters:
    • Simply reverses the word

Decoding Process

  1. Takes each encoded word
  2. For words with random letters added:
    • Removes the first 3 random characters
    • Removes the last 3 random characters
    • Swaps the first and last character back to original position
  3. For short words:
    • Reverses them back to original

๐Ÿ–ฅ๏ธ User Interface

The application features:

  • Clear menu options for encoding or decoding
  • Color-coded results (encoded messages in red, decoded messages in yellow)
  • Divider lines for improved readability
  • Friendly welcome and exit messages with emoji

๐Ÿ“ Example

Original message:

Hello World

Encoded message (random letters will vary):

abc oellHxyz def orlWdghi

Decoded message:

Hello World

๐Ÿ’ก Use Cases

  • ๐Ÿ“ฑ Send messages with basic privacy
  • ๐ŸŽฎ Create simple puzzles or games
  • ๐ŸŽ“ Educational tool for understanding basic text manipulation
  • ๐Ÿ” Introduce beginners to the concept of encryption

โš ๏ธ Note

This is a simple encoding algorithm for fun and is not suitable for securing sensitive information. It provides only very basic obfuscation, not true cryptographic security.

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

๐Ÿ“œ License

This project is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0