System.Security.Cryptography.HashAlgorithm.Create Method

Creates an instance of the default implementation of a hash algorithm.

Syntax

public static HashAlgorithm Create ()

Returns

A new System.Security.Cryptography.SHA1CryptoServiceProvider instance, unless the default settings have been changed using the <cryptoClass> Element.

Remarks

By default, this overload uses the System.Security.Cryptography.SHA1CryptoServiceProvider implementation of a hash algorithm. If you want to specify a different implementation, use the HashAlgorithm.Create(string) overload, which lets you specify an algorithm name, instead. The cryptography configuration system defines the default implementation of System.Security.Cryptography.HashAlgorithm.

Requirements

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