Tool to calculate entropy on files
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md Coding style is better ? Mar 19, 2013
entropie.py

README.md

entropie

Tool to calculate entropy on files

Usage

NAME
  entropie.py

SYNOPSIS
  entropie.py [OPTIONS] FILE1 FILE2...

DESCRIPTION
  Calculates the shannon entropy of a file.

OPTIONS
  -h, --help
    This Help

  -l, --line
    Calculates the entropy of each line

  -b, --block
    Calculates the entropy of each bloc (16 bytes by default)

  -s SIZE, --size=SIZE
    Sets the block size to SIZE in bytes (16 bytes by default)

  -m METHOD, --method=METHOD
    Determines how to calculate the probabilities of the elements. METHOD
    can be 'local' or 'global'. If set to local (default) the probabilities
    are evaluated at each calculation. If set to global the probabilities
    are evaluated once with the whole file.

  -e, --entropy
    Outputs only the entropy (the number)

EXAMPLES
  entropie.py -l entropie.py
  entropie.py -s 32 -b -m local entropie.py