Skip to main content

Decodify

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.


Features

  • 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.

Installation

You can install decodify using pip:

pip install decodify

Usage

Python API

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}")

Command-Line Interface (CLI)

You can use the decodify CLI to decode messages directly from the terminal.

Decode a Message

decodify "aGVsbG8="

Decode a Message from a File

decodify encoded.txt -f

Specify an Algorithm

decodify "aGVsbG8=" --algorithm base64

Save the Decoded Message to a File

decodify "aGVsbG8=" --output decoded.txt

Supported Algorithms

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).

Examples

Decoding a Base64 Message

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, ...}

Decoding from a File

decodify encoded.txt -f

Saving Decoded Output to a File

decodify "aGVsbG8=" --output decoded.txt

License

This project is licensed under the MIT License. See the LICENSE file for details.


Contributing

Contributions are welcome! If you'd like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Commit your changes.
  4. Submit a pull request.

Issues

If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.


Acknowledgments

  • Thanks to the Python community for creating amazing tools and libraries.
  • Special thanks to contributors who helped improve this package.

Contact

For questions or feedback, feel free to reach out:


Enjoy decoding with Decodify! 🚀

Metadata

Release files for decodify 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for decodify 0.1.3
File Size Uploaded
decodify-0.1.3.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for decodify 0.1.3
File Interpreter ABI Platform
decodify-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 14.2 kB

Release files / decodify-0.1.3.tar.gz

Download URL decodify-0.1.3.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
01812212af9d44fadcd0ef91df927c228b4de4895a5aeccfe631d0f529838438
BLAKE2b-256 checksum
How to use checksums
4d11a2869ee1802df50a5abc03855ebb261e5213781398e03c7572d01de8e807
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release files / decodify-0.1.3-py3-none-any.whl

Download URL decodify-0.1.3-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f04cff1ee4aa22a4b9e8f3a74a22db87cbedbf585fadaf25623ba50dbbeb42a6
BLAKE2b-256 checksum
How to use checksums
3cddea4a1db44a1e7709c60e9413e2b807f70f41b98902b9ab44a0e95eed2c0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page