Class HashingFunction
- Namespace
- SmarterLink.Core.FileTransfer
- Assembly
- SmarterLink.Core.dll
Identifies a hashing algorithm used for file transfer integrity verification. Two canonical values are defined; custom algorithm names are permitted.
[JsonConverter(typeof(ValueOfConverterFactory))]
public record HashingFunction : ValueOf<string>, IEquatable<ValueOf<string>>, IEquatable<HashingFunction>
- Inheritance
-
HashingFunction
- Implements
- Inherited Members
Constructors
HashingFunction(string)
Creates a hashing function with the given name. If the name matches a canonical value, IsCanonical will be true.
public HashingFunction(string name)
Parameters
namestring
Fields
MD5
The MD5 hashing algorithm.
public static readonly HashingFunction MD5
Field Value
Sha256
The SHA-256 hashing algorithm.
public static readonly HashingFunction Sha256
Field Value
Properties
IsCanonical
Indicates whether this hashing function is one of the canonical SmarterLink-defined algorithms.
[JsonIgnore]
public bool IsCanonical { get; }