Script to convert binary files to human-readable binary or hex
  • Python 98.3%
  • Makefile 1.7%
Find a file
Vincent van Setten 79875d6951 Add ability to compile binary files from text
TODO: implement other readers and update main to take it into account
2023-04-19 12:34:34 +02:00
.github/workflows Create python-app.yml 2022-04-11 14:19:12 +02:00
docs Add pytests 2022-04-11 14:50:33 +02:00
.gitignore Added argument-free option 2022-04-11 15:47:07 +02:00
LICENSE.md Create LICENSE.md 2022-03-07 14:58:05 +01:00
main.py Add ability to compile binary files from text 2023-04-19 12:34:34 +02:00
Makefile Add pytests 2022-04-11 14:50:33 +02:00
printers.py Modify how the functions are called and improve error handling 2022-04-11 15:27:24 +02:00
readers.py Add ability to compile binary files from text 2023-04-19 12:34:34 +02:00
README.md Modify build label 2022-04-11 14:57:15 +02:00
sysout.py Add pytests 2022-04-11 14:50:33 +02:00
test_decoders.py Modify how the functions are called and improve error handling 2022-04-11 15:27:24 +02:00
testbinary.bin Add pytests 2022-04-11 14:50:33 +02:00

Contributors Badge Forks Badge Stars Badge Issues Badge License Badge Build Badge

Bin To Hex

A simple script that converts binary files into readable decimal, binary, or hex files. This tool should work for any binary file.

Table of Contents

Getting Started

Prerequisites

  1. Python

Installation

  1. Clone this project somewhere you like
    • git clone https://github.com/Vvamp/BinToHex
  2. Cd into the project directory
    • cd BinToHex

Usage

Command Line Arguments

Run : python main.py -h shows all the available command line arguments and their usage.
The command python main.py -i hello.DDD -o output.txt --hex converts the hello.DDD file to hex into output.txt. The command python main.py -i hello.DDD -o output.txt --binary converts the hello.DDD file to binary text. The command python main.py -i hello.bin -o output.txt --binary --hex converts the hello.bin file to both binary and hex(seperated by a '|' character).

See python main.py -h for a list of commands

Contributing

  1. Fork the project
  2. Create a feature branch: git checkout -b feature/<FeatureName>
  3. Make your changes
  4. Commit your changes: git commit -m "<Describe your changes>"
  5. Push to the branch: git push origin feature/<FeatureName>
  6. Open a pull request

License

Distributed under the Boost Software License Version 1.0.
See LICENSE for more details.

Contact

Vincent van Setten - @Vvamp - info@vincentvansetten.com
Project: Bin To Hex

Acknowledgements