Embed hash of dictionary in compressed resource (optionally) #504

Closed
opened 2026-01-29 20:44:56 +00:00 by claunia · 1 comment
Owner

Originally created by @pmeenan on GitHub (Apr 9, 2024).

It would be useful if, when using a raw dictionary for compression, the compressor could embed a hash of the dictionary that was used during compression. Then, at decompression time, if the hash is present and doesn't match the provided dictionary the decompression would fail. It could also be used to identify which dictionary in a set of dictionaries was used at decompression time.

For the HTTP content-encoding we are currently passing the dictionary hash as an additional response header but that depends on the header and the resource always being together. It would be cleaner if the payload itself could contain the dictionary information.

See https://github.com/httpwg/http-extensions/issues/2770

Originally created by @pmeenan on GitHub (Apr 9, 2024). It would be useful if, when using a raw dictionary for compression, the compressor could embed a hash of the dictionary that was used during compression. Then, at decompression time, if the hash is present and doesn't match the provided dictionary the decompression would fail. It could also be used to identify which dictionary in a set of dictionaries was used at decompression time. For the HTTP content-encoding we are currently passing the dictionary hash as an additional response header but that depends on the header and the resource always being together. It would be cleaner if the payload itself could contain the dictionary information. See https://github.com/httpwg/http-extensions/issues/2770
Author
Owner

@pmeenan commented on GitHub (Apr 29, 2024):

Closing in favor of #1167

@pmeenan commented on GitHub (Apr 29, 2024): Closing in favor of #1167
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#504