Methods are provided for categorizing input data into a selected data type
category. Exemplary embodiments are directed to the categorization of
binary input data, for example random input data, as either compressed or
encrypted based on statistical analysis. To this end, at least a portion
of the input data is analyzed to derive a statistical test result for the
portion that is indicative of a degree of randomness of the data. The
data is then categorized as either compressed or encrypted based on the
statistical test result.