Entropy as a measurement of information density is used particularly in reverse code engineering (RCE) to tell apart compressed or encrypted pieces of data (or even code) from plain data.
Further reading:
- Wikipedia article Entropy (information theory)
- Also see this question and its answers