CyberChef in Termux – Data Encoding, Decoding and Encryption Guide

CyberChef is a simple web-based tool that lets you work with different types of data. It provides many operations for encoding, decoding, encryption, hashing, compression, and data conversion. You can run CyberChef locally in Termux and access it through your browser. It is useful for exploring and understanding different data formats.

Here’s what you can do with CyberChef:

  • Encode and decode Base64 data.
  • Convert data between text, hexadecimal, and binary formats.
  • Generate different types of hashes.
  • Encrypt and decrypt supported data.
  • Decode and process URLs.
  • Compress and decompress data.
  • Use regular expressions to find and extract data.
  • Analyze and transform data using multiple operations.

Install CyberChef in Termux

Below are the simple commands to download and extract CyberChef in Termux. Copy and run each command one by one.

Update Termux packages.

pkg update && pkg upgrade -y

Install the required packages.

pkg install wget unzip python -y

Create a CyberChef directory.

mkdir cyberchef

Go to the CyberChef directory.

cd cyberchef

Download CyberChef.

wget https://github.com/gchq/CyberChef/releases/download/v11.4.0/CyberChef_49d1a5634a67a3b806c6db0fdca7dcecb41a776c.zip

Extract the CyberChef ZIP file.

unzip CyberChef_49d1a5634a67a3b806c6db0fdca7dcecb41a776c.zip

CyberChef is now downloaded and extracted.

Usage Commands

Run the following command from the CyberChef directory to start the local web server.

cd cyberchef

Start the local server.

python -m http.server 8080

The terminal will show a message similar to:

Serving HTTP on :: port 8080 (http://[::]:8080/) ...

Open your Android browser and visit:

http://127.0.0.1:8080

A Directory listing page will appear showing the CyberChef files and folders.

Look for CyberChef_v11.4.0.html and tap on it.

CyberChef_v11.4.0.html

CyberChef will now open in your browser.

CyberChef Use Guide

  • Open CyberChef in your browser using http://127.0.0.1:8080.
  • Select an operation from the Operations section.
  • Use the Search box to quickly find an operation.
  • Enter your text or data in the Input section.
  • The processed result will appear in the Output section.
  • Use To Base64 to encode text into Base64.
  • Use From Base64 to decode Base64 data.
  • Use To Hex to convert data into hexadecimal.
  • Use From Hex to convert hexadecimal data back to text.
  • Use URL Decode to decode URL-encoded data.
  • Use Hashing operations to generate hashes.
  • Use Regular expression to search or extract matching data.
  • Add multiple operations to the Recipe section to process data step by step.
  • Use Clear recipe to remove all selected operations.
  • Click BAKE! to run the selected recipe.
  • Enable Auto Bake to process the data automatically.

For example, you can select To Base64, enter text in the Input section, and CyberChef will display the encoded result in the Output section.

You can also combine operations in the Recipe section. For example:

To Base64 → To Hex

It will first convert the input to Base64 and then convert the result to hexadecimal.

To stop the CyberChef local server, return to the terminal and press:

CTRL + C

End Note

CyberChef is a simple and useful tool for working with different types of data. It offers many operations for encoding, decoding, hashing, converting, and analyzing data. It is easy to use and provides multiple useful options in one place.

SHARE THIS POST: