Skip to content

D-I-Projects/diec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.