Skip to main content

Unified Hash-Compression Engine: compressed-domain hashing over LZ77 streams

Project description

UHC — Unified Hash-Compression Engine

A Python framework for compressed-domain hashing over LZ77 streams.

UHC computes the polynomial hash of uncompressed data by operating directly on compressed token streams (DEFLATE, LZ4, Zstandard), without ever materializing the decompressed bytes.

Key Features

  • Compressed-domain hashing: Compute integrity hashes without decompression
  • Hash-augmented rope: Novel data structure with RepeatNode for O(k·log q) overlapping back-reference resolution
  • Multi-hash collision resistance: k-wise independent polynomial hashes with configurable security levels
  • Format compatible: DEFLATE, LZ4, Zstandard support via unified token abstraction
  • Sliding window: O(1) memory relative to decompressed size for bounded-window formats

Installation

pip install uhc

Quick Start

import uhc

# Coming soon — Phase 1 implementation in progress

Mathematical Foundation

The complete mathematical framework (24 theorems, 14 lemmas, 5 corollaries) with full proofs is available in theory/compressed_domain_hashing_framework.md.

Project Status

Phase 1: Algebraic core — polynomial hash, naive LZ77, compressed-domain verifier

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uhc-0.1.2.tar.gz (31.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uhc-0.1.2-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file uhc-0.1.2.tar.gz.

File metadata

  • Download URL: uhc-0.1.2.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for uhc-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f878f2f0a7893559c0c28bda9a48e2b189ef834c60ff7f6c738a2025d3d07e67
MD5 03218661f4c9441bd2c762f75c321e6f
BLAKE2b-256 ddfeba928fbdee17ae77d52e94306a8ae29a619825c89710b1f9a814184eabef

See more details on using hashes here.

File details

Details for the file uhc-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: uhc-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for uhc-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3bee96bd33eb20dadb24658502685875176f99f57c62d6ca26c228c12972e6ef
MD5 d6f88c4a2163f82ab14e6e98073a722c
BLAKE2b-256 a1554b7727a58b7764b58580d4d793616c40693a1c1a6d0a34333b19291f06e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page