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 x6c1Usage
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"