hydra.overlay.python.lib.hashing module

Python implementations of hydra.overlay.python.lib.hashing primitives.

SHA-256 over raw bytes (binary). These pair with hydra.overlay.python.lib.files.readFile, which is byte-oriented, to hash file contents. Pure and total. For #524.

hydra.overlay.python.lib.hashing.sha256(data: bytes) bytes

Compute the 32-byte SHA-256 digest of a sequence of bytes.

hydra.overlay.python.lib.hashing.sha256_hex(data: bytes) str

Compute the SHA-256 digest of a sequence of bytes as a 64-character lowercase hex string.