← 全部工具

0x6C1

热度 55 更新于 开发与构建

A comprehensive tool for converting between hexadecimal representations and their corresponding text or numeric values

pypiauto-collected

安装

暂未验证可直接使用的安装命令,请查看项目官方文档或 Release。

x6c1 - Hex Translator

A comprehensive command-line tool and Python library for converting between hexadecimal representations and their corresponding text or numeric values with file support.

Installation

pip install x6c1

Usage

Command Line

# Convert hex to text
x6c1 --hex "48656c6c6f20576f726c64"

# Convert text to hex
x6c1 --text "Hello World"

# Convert number to hex
x6c1 --numhex 255
x6c1 --numhex 3.14

# Convert hex to number
x6c1 --hexnum "ff"

Process files

x6c1 --file input.txt --output output.txt --hex

Formatting options

x6c1 --text "Hello" --group-size 4 --prefix "0x" x6c1 --numhex 3.14 --float-bits 32


### Python API 

from x6C1 import hextotext, texttohex, numbertohex, hextonumber

Convert hex to text

text = hextotext("48656c6c6f") # Returns "Hello"

Convert text to hex

hexstr = texttohex("Hello") # Returns "48656c6c6f"

Convert number to hex