[–] tptacek 3y ago ↗ A useful tool to throw together real quick: something that takes `hexdump -C` (or Go's `hex.Dump`, or whatever) and converts it back to binary. [–] brenns10 3y ago ↗ You may want to try xxd -r. https://linux.die.net/man/1/xxdOf course, if you're just looking for a fun programming exercise, then don't let me stop you :) [–] tptacek 3y ago ↗ Just checked, and on macOS at least, `xxd -r` doesn't properly parse `hex.Dump`. [–] lkuty 3y ago ↗ Speaking of macOS, I like the Hex Fiend application to display/edit files in hexadecimal (though it cannot be used on the command line). [–] 1vuio0pswjnm7 3y ago ↗ Instead of hexdump one can use od, "octal dump". For example, echo xyz|od -An -tx1|xxd -p -r
[–] brenns10 3y ago ↗ You may want to try xxd -r. https://linux.die.net/man/1/xxdOf course, if you're just looking for a fun programming exercise, then don't let me stop you :) [–] tptacek 3y ago ↗ Just checked, and on macOS at least, `xxd -r` doesn't properly parse `hex.Dump`. [–] lkuty 3y ago ↗ Speaking of macOS, I like the Hex Fiend application to display/edit files in hexadecimal (though it cannot be used on the command line).
[–] tptacek 3y ago ↗ Just checked, and on macOS at least, `xxd -r` doesn't properly parse `hex.Dump`. [–] lkuty 3y ago ↗ Speaking of macOS, I like the Hex Fiend application to display/edit files in hexadecimal (though it cannot be used on the command line).
[–] lkuty 3y ago ↗ Speaking of macOS, I like the Hex Fiend application to display/edit files in hexadecimal (though it cannot be used on the command line).
[–] 1vuio0pswjnm7 3y ago ↗ Instead of hexdump one can use od, "octal dump". For example, echo xyz|od -An -tx1|xxd -p -r
5 comments
[ 1.9 ms ] story [ 24.3 ms ] threadOf course, if you're just looking for a fun programming exercise, then don't let me stop you :)