Skip to main content

A tool that encodes text and provides a key for decoding!

Project description

Diec

License PyPi Contributors badge PyPI - Downloads

pip install diec

A tool that encodes text and gives out a key that you can decode with this program too!

Installation

pip install diec

Example


encode()

from diec.encoder import encode

encode("I love python and I love to learn new things here too! <3")

Output

The Key you created : key.diec

The encoded text : encoded.diec

Both of them will appear in your current directory


decode()

from diec.decoder import decode

decode() # The key.diec and encoded.diec files have to be in the same directory as the file that runs this command.

Output

I love python and I love to learn new things here too! <3

CLI Tutorial

The Diec CLI (Command Line Interface) allows you to easily encode and decode text via the terminal.

Installation

Make sure Diec is installed:

pip install diec

Using the CLI

After installation, you can use the following commands:

  1. Encode Text:

    To encode a text, use the encode_cli command. Provide the desired text in quotes:

    python -m diec encode-cli "Your text here"
    

    Example:

    python -m diec encode-cli "I love Python and learning new things! <3"
    

    After running this command, a key file (key.diec) and an encoded file (encoded.diec) will be created in your current directory.

  2. Decode Text:

    To decode an encoded text, use the decode_cli command:

    python -m diec decode-cli
    

    Make sure that the key.diec and encoded.diec files are in the same directory as the script you run.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

diec-1.8.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

diec-1.8-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page