Open In App

CodExt – Encode/decode anything with Python

Last Updated : 28 Mar, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Encoding and Decoding are important factors for secure communication. To save confidential data from attackers, we need to encode the information. So we can use the CodExt tool which is developed to encode and decode secret information for secure communication. CodExt tool is developed in the python language and its variable on the Github platform.  It provides 120+ new codecs and also features a guessing mode for decoding multiple layers of encoding and CLI tools for convenience.

Note: Make Sure You have Python Installed on your System, as CodExt is a python-based tool. Click to check the Installation process: Python Installation Steps on Linux

Installation of CodExt Tool on Kali Linux OS

Step 1: Check the Python3 existence on your Linux machine.

python3

Step 2: Now use the following command to get the CodExt package tool on your system using PIP manager.

sudo pip install codext

Step 3: All the dependencies have been installed in your Kali Linux operating system. Now use the following command to run the tool and check the help section.

codext -h

Working with CodExt Tool on Kali Linux OS

Example 1: Main CLI tool

echo "GeeksforGeeks" | base122

In this example, we are encoding the “GeeksforGeeks” string in base122 format.

Example 2: Base100 type encoding

echo “GeeksforGeeks” | codext encode base100

In this example, we are encoding the “GeeksforGeeks” string in Base100 format.

Example 3: Chaining codecs

echo -en “GeeksforGeeks is a Computer Tech Community” | codext encode reverse

In this example, we are encoding the input string by reversing the string.

Example 4: Using macros

codext add-macro my-encoding-chain gzip base63 lzma base64

In this example, we are adding our own macro encoding definition.

echo -en “GeeksforGeeks” | codext encode my -encoding-chain


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads