System.Security.Cryptography.HashAlgorithm.ComputeHash Method

Computes the hash value for the specified region of the specified byte array.

Syntax

public byte[] ComputeHash (byte[] buffer, int offset, int count)

Parameters

buffer
The input to compute the hash code for.
offset
The offset into the byte array from which to begin using data.
count
The number of bytes in the array to use as data.

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