Hacker News new | ask | show | jobs
by pq0ak2nnd 2832 days ago
Can someone recommend a good resource to analyze entropy in a file as the author discussed?
3 comments

The easy way: compress it with whatever you want (xz? gzip?) and compare the sizes. If it doesn't get significantly smaller, it's probably encrypted or already compressed.
binwalk -E

Will show a graph of the file offset vs shannon entropy.

read "A Mathematical Theory Of Communication" by Shannon himself, it's the only source you will ever need, it's available for free