Method GetHashAsync
GetHashAsync(Stream, string, int)
Asynchronously computes the hash value for the specified stream using the specified hash algorithm and a custom buffer size.
public static Task<string> GetHashAsync(this Stream stream, string hashAlgorithmName, int bufferSize = 524288)
Parameters
stream
StreamThe stream to compute the hash for.
hashAlgorithmName
stringThe name of the hash algorithm.
bufferSize
intThe size of the buffer used to read the stream.