Skip to content

taotieren/hex2bin

 
 

Repository files navigation

hex2bin

Linux CI Windows CI Release License: GPL v3 Bugs Code Smells Duplicated Lines (%) Vulnerabilities Maintainability Rating Reliability Rating Security Rating Technical Debt Lines of Code Coverage Quality Gate Status

(GPL) Hex to binary converter.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.

Instructions

MS Windows

Download the software :

mkdir devel
cd devel
git clone https://github.com/Keidan/hex2bin.git
cd hex2bin
cmake -S . -B build -DDISTRIBUTION=[debug|release] -G"Visual Studio 17 2022"
cmake --build .
bin\Debug\hex2bin.exe -h

GNU Linux

Download the software :

mkdir devel
cd devel
git clone https://github.com/Keidan/hex2bin.git
cd hex2bin
cmake -S . -B build -DDISTRIBUTION=[debug|release] -G"Ninja"
cmake --build .
./bin/hex2bin -h

All

Supported cmake options (optional):

* Supported distrib.: -DDISTRIBUTION=[debug|release]
* Default start value: cmake -DDEFSTART=[int value] (see the '-s, --start' option of the binary)
* Default limit value: cmake -DDEFLIMIT=[int value] (see the '-l, --limit' option of the binary)

You can also use cmake-gui to manage the options.

Example (with cmake -DDEFSTART=0 -DDEFLIMIT=0)

For Windows, remember to add .exe after the binary name.

Test 1:

hex2bin -i sample1.txt -o sample1.txt.new -s 6 -l 47

hex2bin -i sample1.txt.new -o sample1.txt.bin -p

Test 2:

hex2bin -i sample2.txt -o sample2.txt.new -l 47

hex2bin -i sample2.txt.new -o sample2.txt.bin -p

Test 3:

hex2bin -i sample3.txt -o sample3.txt.new -s 1

License

GPLv3

About

(GPL) Hex to binary converter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 54.4%
  • C 20.5%
  • Python 14.6%
  • CMake 10.5%