Is it possible by any technique to decompress a Huffman image without having keys generated by the Huffman tree?
Asked
Active
Viewed 172 times
2 Answers
0
There are no "keys". If you do not know the code, then you might be able to deduce a fixed code with sufficient examples of coded data and that same data in the clear. That is simply a cryptography breaking job.
If you don't have the code, and you don't have the data in the clear, then there is nothing you can do.

Mark Adler
- 101,978
- 13
- 118
- 158
0
You've got two options. One is to use canonical Huffman codes which have a set patterns of 1s and zeroes for any length. You need to store counts but not the codes themselves. Or you can use adaptive Huffman coding, which starts off with equal codes then rebuilds the tree as data items arrive.

Malcolm McLean
- 6,258
- 1
- 17
- 18