Table of Contents

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
Hash
Implements
Derived
Hash<TOptions>

Constructors

Hash()

Initializes a new instance of the Hash class.

protected Hash()

Methods

ComputeHash(bool)

Computes the hash value for the specified bool.

public virtual HashResult ComputeHash(bool input)

Parameters

input bool

The bool 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 virtual 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(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 char.

public virtual HashResult ComputeHash(char input)

Parameters

input char

The 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 IConvertible.

public virtual HashResult ComputeHash(IEnumerable<IConvertible> input)

Parameters

input IEnumerable<IConvertible>

The sequence of IConvertible 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 DBNull.

public virtual HashResult ComputeHash(DBNull input)

Parameters

input DBNull

The DBNull 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 DateTime.

public virtual HashResult ComputeHash(DateTime input)

Parameters

input DateTime

The DateTime 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 decimal.

public virtual HashResult ComputeHash(decimal input)

Parameters

input decimal

The 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 double.

public virtual HashResult ComputeHash(double input)

Parameters

input double

The 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 Enum.

public virtual HashResult ComputeHash(Enum input)

Parameters

input Enum

The Enum to compute the hash code for.

Returns

HashResult

A HashResult containing the computed hash code of the specified input.

ComputeHash(params 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(Stream)

Computes the hash value for the specified Stream.

public virtual HashResult ComputeHash(Stream input)

Parameters

input Stream

The Stream to compute the hash code for.

Returns

HashResult

A HashResult containing the computed hash code of the specified input.

ComputeHash(short)

Computes the hash value for the specified short.

public virtual HashResult ComputeHash(short input)

Parameters

input short

The short to compute the hash code for.

Returns

HashResult

A HashResult containing the computed hash code of the specified input.

ComputeHash(int)

Computes the hash value for the specified int.

public virtual HashResult ComputeHash(int input)

Parameters

input int

The int to compute the hash code for.

Returns

HashResult

A HashResult containing the computed hash code of the specified input.

ComputeHash(long)

Computes the hash value for the specified long.

public virtual HashResult ComputeHash(long input)

Parameters

input long

The long 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 sbyte.

public virtual HashResult ComputeHash(sbyte input)

Parameters

input sbyte

The sbyte to compute the hash code for.

Returns

HashResult

A HashResult containing the computed hash code of the specified input.

ComputeHash(float)

Computes the hash value for the specified float.

public virtual HashResult ComputeHash(float input)

Parameters

input float

The float 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 string.

public virtual HashResult ComputeHash(string input, Action<EncodingOptions> setup = null)

Parameters

input string

The 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(ushort)

Computes the hash value for the specified ushort.

public virtual HashResult ComputeHash(ushort input)

Parameters

input ushort

The ushort to compute the hash code for.

Returns

HashResult

A HashResult containing the computed hash code of the specified input.

ComputeHash(uint)

Computes the hash value for the specified uint.

public virtual HashResult ComputeHash(uint input)

Parameters

input uint

The uint to compute the hash code for.

Returns

HashResult

A HashResult containing the computed hash code of the specified input.

ComputeHash(ulong)

Computes the hash value for the specified ulong.

public virtual HashResult ComputeHash(ulong input)

Parameters

input ulong

The ulong 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 EndianOptions

An instance of the configured options.

See Also