API Reference

Class

OfficeDocumentAssetHash

Namespace OfficeIMO.Reader
Assembly OfficeIMO.Reader
Modifiers static

Hash helpers for materializable read-result assets.

Inheritance

  • Object
  • OfficeDocumentAssetHash

Methods

public static String ComputeSha256Hex(Byte[] payload) #
Returns: String

Computes a lowercase SHA-256 hex hash for asset payload bytes.

Parameters

payload System.Byte[] requiredposition: 0
Asset payload bytes.
public static Boolean PayloadHashMatches(OfficeDocumentAsset asset, out String actualHash) #
Returns: Boolean

Checks whether an asset payload matches its declared payload hash.

Parameters

asset OfficeIMO.Reader.OfficeDocumentAsset requiredposition: 0
Asset to validate.
actualHash System.String@ requiredposition: 1
Computed SHA-256 hash when validation could run.