A tiny tool to encode or decode hex data.
Your can download binary executor from the release page, or you can build it by yourself also.
$ make
$ cp hex /usr/local/bin
The hex command only read data from stdin.
$ hex --help
Usage of hex:
-d Decode incoming Hex stream into binary data.
$ echo -n 9d4c8fe7d9ead6125efbc892655f61ba818793c6 | hex -d | base64
nUyP59nq1hJe+8iSZV9huoGHk8Y=
$ base64 -d <<<nUyP59nq1hJe+8iSZV9huoGHk8Y= | hex
9d4c8fe7d9ead6125efbc892655f61ba818793c6