Share via


HashAlgorithmProvider.CreateHash Method

Definition

Creates a reusable CryptographicHash object.

public CryptographicHash CreateHash();

Returns

Reusable hash object.

Remarks

You must call the OpenAlgorithm method before calling this property. Call the Append method on the CryptographicHash object to copy hashed data into a buffer. Call the GetValueAndReset method to retrieve the hashed data and reset the CryptographicHash object so that it can be used again to hash more data.

Applies to

See also