Implemetation of different encryption\decryption algorithms test
- Huffman
- LZ77
- Deflate
- usage:
- -e Huffman "text_to_encrypt"
- -d Huffman "text_to_encrypt"
- -e LZ77 "text_to_encrypt"
- -d LZ77 "text_to_encrypt"
- -e Deflate "text_to_encrypt"
- -d Deflate "text_to_encrypt"
Huffman encoding
- encoded sequence is represented as:
- 1 byte long number - dictionary length
- dictionary length times 1 byte long char and 1 byte long frequency
- finally encoded message
LZ77 encoding
- encoded sequence is represented as:
- sequence of chars and [Offset,Lenght] <- reference