Skip to content

dipta007/huffman-coding-encryption

Repository files navigation

huffman-coding-encryption

A simple python tool to encrypt text file using huffman coding.
Ideas are taken from 2 papers mentioned below.

Papers

Encoding

To run encoding, you need to provide a text file.

$ python encode.py filename

Decoding

To run decoding, you need to provide a encoded file generated from previous step.

$ python decode.py filename

Comparing

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

References