TEXT FILE DATA COMPRESSION AND CRYPTOGRAPHY USING SHANNON FANO CODING
TEXT FILE DATA COMPRESSION AND CRYPTOGRAPHY USING SHANNON FANO CODING
In this project I implemented a real world application of Shannon Fano Algorithm to compress the data of a text file using python and the result file(54 bytes) obtained was 11 byte less than the original one(65 bytes).
Software Requirements:
PyCharm For writing python code
Codes:
Original text file name: divy.txt
Files in folders:
Properties of divy.txt :
Size of file before compression: 65 kb
Contents of divy.txt:
File after compression: Shannon.txt
Properties ( shannon.txt ) :
Contents of Shannon.txt:
File after decompression: shannonDecompressed.txt
Properties(ShannonDecompressed.txt):
Contents of ShannonDecompressed.txt: