Skip to main content

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

Project description

diec

License PyPi Contributors badge Downloads

pip install diec

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

Our official test UI : diec-test-gui

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-2.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

diec-2.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file diec-2.1.tar.gz.

File metadata

  • Download URL: diec-2.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for diec-2.1.tar.gz
Algorithm Hash digest
SHA256 944742b7a400f4c6907555c6b7187069912cc922a7daeafcdda3e469e1e1f37c
MD5 f288a2b7a7f138a4348a69572a0588e2
BLAKE2b-256 72f7b28c167cedb601c99201c48d55c9b40a048c594f7fb0955052c6c6f5c86e

See more details on using hashes here.

File details

Details for the file diec-2.1-py3-none-any.whl.

File metadata

  • Download URL: diec-2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for diec-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e7d8ccfaed012d43c5a14641eba7987c89825ebad8698fbb5237e8426d5e3e1
MD5 a7db19eb5ad9e21d4724c692fd9a08db
BLAKE2b-256 bf616b83e9c5fba01f625ed65f611a1c6ef22d718eb464c1d10bff80853541fb

See more details on using hashes here.

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