Skip to main content

HashAlgorithmName Struct

NuGet: GHIElectronics.TinyCLR.Cryptography
Assembly: System.Security.Cryptography
Namespace: System.Security.Cryptography

Well-known hash-algorithm name selector matching .NET Framework's System.Security.Cryptography.HashAlgorithmName.

public struct HashAlgorithmName

Constructors​

HashAlgorithmName(string name)​

public HashAlgorithmName(string name)

Creates a name from the given algorithm string.

Properties​

Name​

public string Name { get; }

The algorithm name.

MD5​

public static HashAlgorithmName MD5 { get; }

The MD5 algorithm name.

SHA1​

public static HashAlgorithmName SHA1 { get; }

The SHA-1 algorithm name.

SHA256​

public static HashAlgorithmName SHA256 { get; }

The SHA-256 algorithm name.

SHA384​

public static HashAlgorithmName SHA384 { get; }

The SHA-384 algorithm name.

SHA512​

public static HashAlgorithmName SHA512 { get; }

The SHA-512 algorithm name.

Methods​

Equals(HashAlgorithmName other)​

public bool Equals(HashAlgorithmName other)

Returns true if the two names are equal.

Returns bool

Equals(object obj)​

public override bool Equals(object obj)

Returns true if the object is an equal name.

Returns bool

GetHashCode()​

public override int GetHashCode()

Returns the hash code for this name.

Returns int

ToString()​

public override string ToString()

Returns the algorithm name.

Returns string

==(HashAlgorithmName left, HashAlgorithmName right)​

public static bool operator ==(HashAlgorithmName left, HashAlgorithmName right)

Returns true if the two names are equal.

Returns bool operator

!=(HashAlgorithmName left, HashAlgorithmName right)​

public static bool operator !=(HashAlgorithmName left, HashAlgorithmName right)

Returns true if the two names differ.

Returns bool operator