A simple python tool to encrypt text file using huffman coding.
Ideas are taken from 2 papers mentioned below.
To run encoding, you need to provide a text file.
$ python encode.py filename
To run decoding, you need to provide a encoded file generated from previous step.
$ python decode.py filename
To compare the encoding and decoding results, you need to provide two files - one the input file and the other the decoded file.
$ python compare.py filename1 filename2