Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct System.​Security.​Cryptography.​HashAlgorithmName
Assembly: System.Security.Cryptography
Implemented Interfaces
Specifies the name of a cryptographic hash algorithm.
Properties
public static
HashAlgorithmName
MD5
Gets a hash algorithm name that represents "MD5".
public
string
Name
Gets the underlying string representation of the algorithm name.
public static
HashAlgorithmName
SHA1
Gets a hash algorithm name that represents "SHA1".
public static
HashAlgorithmName
SHA256
Gets a hash algorithm name that represents "SHA256".
public static
HashAlgorithmName
SHA384
Gets a hash algorithm name that represents "SHA384".
public static
HashAlgorithmName
SHA3_256
Gets a <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> representing "SHA3-256"
public static
HashAlgorithmName
SHA3_384
Gets a <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> representing "SHA3-384"
public static
HashAlgorithmName
SHA3_512
Gets a <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> representing "SHA3-512"
public static
HashAlgorithmName
SHA512
Gets a hash algorithm name that represents "SHA512".
Methods
public
bool
Equals​(object obj)
Returns a value that indicates whether the current instance and a specified object are equal.
Returns <see langword="true" /> if <paramref name="obj" /> is a <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> object and its <see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> property is equal to that of the current instance. The comparison is ordinal and case-sensitive.
obj
The object to compare with the current instance.
public
bool
Equals​(HashAlgorithmName other)
Returns a value that indicates whether two <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> instances are equal.
Returns <see langword="true" /> if the <see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> property of <paramref name="other" /> is equal to that of the current instance. The comparison is ordinal and case-sensitive.
other
The object to compare with the current instance.
public static
HashAlgorithmName
FromOid​(string oidValue)
Converts the specified OID to a hash algorithm name.
Returns The hash algorithm name identified by the OID.
oidValue
The OID of the hash algorithm.
public
int
GetHashCode​()
Returns the hash code for the current instance.
Returns The hash code for the current instance, or 0 if no <paramref name="name" /> value was supplied to the <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> constructor.
public
string
ToString​()
Returns the string representation of the current <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> instance.
Returns The string representation of the current <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> instance.
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object