Class Hash
- Namespace
- Cuemon.Security
- Assembly
- Cuemon.Core.dll
Represents the base class that defines the public facing structure to expose.
public abstract class Hash : IHash
- Inheritance
-
ObjectHash
- Implements
- Derived
-
Hash<TOptions>
Constructors
Hash()
Initializes a new instance of the Hash class.
protected Hash()
Methods
ComputeHash(Boolean)
Computes the hash value for the specified System.Boolean.
public virtual HashResult ComputeHash(bool input)
Parameters
input
BooleanThe System.Boolean to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(Byte)
Computes the hash value for the specified System.Byte.
public virtual HashResult ComputeHash(byte input)
Parameters
input
ByteThe System.Byte to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(Byte[])
Computes the hash value for the specified byte[].
public abstract HashResult ComputeHash(byte[] input)
Parameters
input
Byte[]The byte[] to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(Char)
Computes the hash value for the specified System.Char.
public virtual HashResult ComputeHash(char input)
Parameters
input
CharThe System.Char to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(IEnumerable<IConvertible>)
Computes the hash value for the specified sequence of System.IConvertible.
public virtual HashResult ComputeHash(IEnumerable<IConvertible> input)
Parameters
input
IEnumerable<IConvertible>The sequence of System.IConvertible to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(DateTime)
Computes the hash value for the specified System.DateTime.
public virtual HashResult ComputeHash(DateTime input)
Parameters
input
DateTimeThe System.DateTime to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(DBNull)
Computes the hash value for the specified System.DBNull.
public virtual HashResult ComputeHash(DBNull input)
Parameters
input
DBNullThe System.DBNull to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(Decimal)
Computes the hash value for the specified System.Decimal.
public virtual HashResult ComputeHash(decimal input)
Parameters
input
DecimalThe System.Decimal to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(Double)
Computes the hash value for the specified System.Double.
public virtual HashResult ComputeHash(double input)
Parameters
input
DoubleThe System.Double to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(Enum)
Computes the hash value for the specified System.Enum.
public virtual HashResult ComputeHash(Enum input)
Parameters
input
EnumThe System.Enum to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(IConvertible[])
Computes the hash value for the specified IConvertible[].
public virtual HashResult ComputeHash(params IConvertible[] input)
Parameters
input
IConvertible[]The IConvertible[] to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(Int16)
Computes the hash value for the specified System.Int16.
public virtual HashResult ComputeHash(short input)
Parameters
input
Int16The System.Int16 to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(Int32)
Computes the hash value for the specified System.Int32.
public virtual HashResult ComputeHash(int input)
Parameters
input
Int32The System.Int32 to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(Int64)
Computes the hash value for the specified System.Int64.
public virtual HashResult ComputeHash(long input)
Parameters
input
Int64The System.Int64 to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(Stream)
Computes the hash value for the specified System.IO.Stream.
public virtual HashResult ComputeHash(Stream input)
Parameters
input
StreamThe System.IO.Stream to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(SByte)
Computes the hash value for the specified System.SByte.
public virtual HashResult ComputeHash(sbyte input)
Parameters
input
SByteThe System.SByte to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(Single)
Computes the hash value for the specified System.Single.
public virtual HashResult ComputeHash(float input)
Parameters
input
SingleThe System.Single to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(String, Action<EncodingOptions>)
Computes the hash value for the specified System.String.
public virtual HashResult ComputeHash(string input, Action<EncodingOptions> setup = null)
Parameters
input
StringThe System.String to compute the hash code for.
setup
Action<EncodingOptions>The EncodingOptions which may be configured.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(UInt16)
Computes the hash value for the specified System.UInt16.
public virtual HashResult ComputeHash(ushort input)
Parameters
input
UInt16The System.UInt16 to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(UInt32)
Computes the hash value for the specified System.UInt32.
public virtual HashResult ComputeHash(uint input)
Parameters
input
UInt32The System.UInt32 to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
ComputeHash(UInt64)
Computes the hash value for the specified System.UInt64.
public virtual HashResult ComputeHash(ulong input)
Parameters
input
UInt64The System.UInt64 to compute the hash code for.
Returns
- HashResult
A HashResult containing the computed hash code of the specified
input
.
EndianInitializer(EndianOptions)
Defines the initializer that Hash<TOptions> must implement.
protected abstract void EndianInitializer(EndianOptions options)
Parameters
options
EndianOptionsAn instance of the configured options.