HashAlgorithm::Create Method (String^)
.NET Framework (current version)
Creates an instance of the specified implementation of a hash algorithm.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- hashName
-
Type:
System::String^
The hash algorithm implementation to use. The following table shows the valid values for the hashName parameter and the algorithms they map to.
Parameter value
Implements
SHA
SHA1
System.Security.Cryptography.SHA1
System.Security.Cryptography.HashAlgorithm
MD5
System.Security.Cryptography.MD5
SHA256
SHA-256
System.Security.Cryptography.SHA256
SHA384
SHA-384
System.Security.Cryptography.SHA384
SHA512
SHA-512
System.Security.Cryptography.SHA512
Return Value
Type: System.Security.Cryptography::HashAlgorithm^A new instance of the specified hash algorithm, or null if hashName is not a valid hash algorithm.
.NET Framework
Available since 1.1
Available since 1.1
Show: