Skip to content

1r0nx/num2text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

num2text

A collection of tools to convert numbers into text

Convert numbers from different numeral systems into human-readable text.
Supports binary, octal, ASCII, and hexadecimal inputs.


🚀 Features

  • Convert binary to text
  • Convert octal to text
  • Convert ASCII codes to text
  • Convert hexadecimal to text
  • Supports multiple numbers at once (separated by space/comma)

🧱 Requirements

  • Python 3.x
  • Optional: pyInstaller to compile the scripts into binaries

Install PyInstaller with:

pip3 install pyinstaller

🔧 Installation

Clone the repository and create a binary:

git clone https://github.com/1r0nx/num2text.git
cd num2text
chmod +x build.sh
./build.sh
sudo cp dist/* /usr/bin/

All the executable will be in dist/

Or run it as a script:

git clone https://github.com/1r0nx/num2text.git
cd num2text
chmod +x *.py

⚙️ Example 1

❯ hex2text -s "0x48 0x65 0x6C 0x6C 0x6F"

Output:

Hello

⚙️ Example 2

❯ ascii2text -s "72 101 108 108 111"

Output:

Hello

⚙️ Example 3

❯ cat bin.txt 
01001000 01100101 01101100 01101100 01101111 00001010  
 
❯ bin2text -f bin.txt 
Hello

⚙️ Example 4

❯ cat octal.txt 
110 145 154 154 157

❯ octal2text -f octal.txt 
Hello

📜 License

MIT License


🙋 Contributing

Pull Requests and suggestions are welcome. Please follow standard coding practices and document your changes.

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors