Decodify is a Python package designed to detect and decode messages encoded with various algorithms. It supports multiple encoding schemes and provides a simple interface for decoding messages directly or from files.
- Multiple Encoding Algorithms: Supports Base64, Hexadecimal, URL Encoding, Binary, and Morse Code.
- Automatic Detection: Detects the encoding algorithm used in a message.
- Command-Line Interface (CLI): Decode messages directly from the terminal or from files.
- File Support: Decode messages stored in files and save the output to a file.
You can install decodify
using pip
:
pip install decodify
You can use the decodify
package in your Python code to decode messages.
from decodify import decode_message
# Decode a Base64 encoded message
encoded_message = "aGVsbG8="
decoded, probabilities = decode_message(encoded_message)
print(f"Decoded Message: {decoded}")
print(f"Algorithm Probabilities: {probabilities}")
You can use the decodify
CLI to decode messages directly from the terminal.
decodify "aGVsbG8="
decodify encoded.txt -f
decodify "aGVsbG8=" --algorithm base64
decodify "aGVsbG8=" --output decoded.txt
Algorithm | Description |
---|---|
Base64 | Decodes Base64 encoded strings. |
Hexadecimal | Decodes hexadecimal encoded strings. |
URL Encoding | Decodes URL-encoded strings (e.g., hello%20world → hello world ). |
Binary | Decodes binary encoded strings (e.g., 01101000 01100101 → he ). |
Morse Code | Decodes Morse code strings (e.g., .... . .-.. .-.. --- → HELLO ). |
from decodify import decode_message
encoded_message = "aGVsbG8="
decoded, probabilities = decode_message(encoded_message)
print(f"Decoded Message: {decoded}")
# Output: Decoded Message: hello
print(f"Algorithm Probabilities: {probabilities}")
# Output: Algorithm Probabilities: {'base64': 1.0, ...}
decodify encoded.txt -f
decodify "aGVsbG8=" --output decoded.txt
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes.
- Submit a pull request.
If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.
- Thanks to the Python community for creating amazing tools and libraries.
- Special thanks to contributors who helped improve this package.
For questions or feedback, feel free to reach out:
- Email: [email protected]
- GitHub: ishanoshada
Enjoy decoding with Decodify! 🚀