System.Security.Cryptography.HashAlgorithm.ComputeHash Method

Computes the hash value for the specified System.IO.Stream object.

Syntax

public byte[] ComputeHash (System.IO.Stream inputStream)

Parameters

inputStream
The input to compute the hash code for.

Returns

The computed hash code.

Remarks

A copy of the return value is kept in the HashAlgorithm.Hash property until the HashAlgorithm.Initialize method is called.

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0