HashAlgorithm::Create Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public:
static HashAlgorithm^ Create()

Return Value

Type: System.Security.Cryptography::HashAlgorithm^

A new SHA1CryptoServiceProvider instance, unless the default settings have been changed using the .

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

.NET Framework
Available since 1.1
Return to top
Show: