Given a binary file, how do you convert it to a hex string and back, using only standard tools like
cut, on a minimal system with
These tools are not available:
xxd(comes with vim)
hexdump command comes with
busybox, but it is different from the one that comes with
I'm looking for a script or command to convert a file to a hex string, and a corresponding one for converting it back to binary. The intermediate format doesn't have to be hex, it can be base64 or something else.
This is for an embedded device with limited disk space.