A simple yet effective Python tool th 8F26 at encodes and decodes text messages using character manipulation and random letter injection for basic encryption.
- ๐ 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
- Python 3.x
- termcolor library
# Clone the repository
git clone https://github.com/Naeem-360/message_encode_decode.git
# Navigate to the project directory
cd message_encode_decode# Install required packages
pip install termcolorRun the script using Python:
python encode_decode.py- Takes each word in your message
- 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
- For words with fewer than 3 characters:
- Simply reverses the word
- Takes each encoded word
- 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
- For short words:
- Reverses them back to original
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
Original message:
Hello World
Encoded message (random letters will vary):
abc oellHxyz def orlWdghi
Decoded message:
Hello World
- ๐ฑ Send messages with basic privacy
- ๐ฎ Create simple puzzles or games
- ๐ Educational tool for understanding basic text manipulation
- ๐ Introduce beginners to the concept of encryption
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.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
This project is MIT licensed.