Skip to content
This repository was archived by the owner on Sep 3, 2019. It is now read-only.

Latest commit

 

History

History
27 lines (24 loc) · 816 Bytes

File metadata and controls

27 lines (24 loc) · 816 Bytes

travis-ci.org

CifeProject

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