Class ContentDigests
java.lang.Object
zeroecho.core.io.ContentDigests
Streaming integrity helpers for repeatable content.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringsha256(RepeatableContent content, CancellationSignal cancellation) Computes a SHA-256 fingerprint without materializing the aggregate content.
-
Method Details
-
sha256
public static String sha256(RepeatableContent content, CancellationSignal cancellation) throws IOException Computes a SHA-256 fingerprint without materializing the aggregate content.- Parameters:
content- repeatable contentcancellation- runtime cancellation signal- Returns:
- lowercase hexadecimal SHA-256 fingerprint
- Throws:
IOException- if the content cannot be read or cancellation is requested
-