Class ContentDigests

java.lang.Object
zeroecho.core.io.ContentDigests

public final class ContentDigests extends Object
Streaming integrity helpers for repeatable 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 content
      cancellation - runtime cancellation signal
      Returns:
      lowercase hexadecimal SHA-256 fingerprint
      Throws:
      IOException - if the content cannot be read or cancellation is requested