A tool that encodes text and provides a key for decoding!
Project description
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:
-
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. -
Decode Text:
To decode an encoded text, use the
decode_cli
command:python -m diec decode-cli
Make sure that the
key.diec
andencoded.diec
files are in the same directory as the script you run.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.