{"by":"8dcc","descendants":17,"id":41417263,"kids":[41423875,41427021,41424035,41424414,41423979,41424296],"score":57,"text":"This program provides a simple way of visualizing the different regions of a binary file. Written in C, depends only on libpng.<p>Currently (commit 1dd42e3) it is able to generate PNG images that represent various aspects of the binary:<p>- Grayscale: Byte values, 00..FF.\n- Ascii: Printability of each byte.\n- Entropy: Of a &quot;block&quot;, changed with --block-size.\n- Histogram: Bar graph of the byte frequencies.\n- Bigrams: Each point is determined by a pair of bytes.\n- Dotplot: Measure self-similarity. Image width&#x2F;height is N^2.<p>In the future, I plan on adding an SDL version that allows the user to view a section of the file interactively (sections are currently supported with --offset-start and --offset-end).<p>More information on the README.","time":1725201052,"title":"Show HN: Bin-graph: Visualize binary files","type":"story","url":"https://github.com/8dcc/bin-graph"}