Show / Hide Table of Contents

    Class HashUtility

    This utility class is designed to make System.Security.Cryptography.HashAlgorithm operations easier to work with.

    Inheritance
    System.Object
    HashUtility
    Namespace: Cuemon.Security.Cryptography
    Assembly: Cuemon.Security.dll
    Syntax
    public static class HashUtility

    Methods

    | Improve this Doc

    ComputeHash(Byte[], Action<HashOptions>)

    Computes a hash value of the specified value.

    Declaration
    public static HashResult ComputeHash(byte[] value, Action<HashOptions> setup = null)
    Parameters
    Type Name Description
    System.Byte[] value

    The System.Byte array to compute a hash code for.

    System.Action<HashOptions> setup

    The HashOptions which need to be configured.

    Returns
    Type Description
    HashResult

    A HashResult containing the computed hash value of the specified value.

    | Improve this Doc

    ComputeHash(Stream, Action<StreamHashOptions>)

    Computes a hash value of the specified value.

    Declaration
    public static HashResult ComputeHash(Stream value, Action<StreamHashOptions> setup = null)
    Parameters
    Type Name Description
    System.IO.Stream value

    The System.IO.Stream to compute a hash code for.

    System.Action<StreamHashOptions> setup

    The StreamHashOptions which need to be configured.

    Returns
    Type Description
    HashResult

    A HashResult containing the computed hash value of the specified value.

    | Improve this Doc

    ComputeHash(Object, Action<HashOptions>)

    Computes a hash value of the specified value.

    Declaration
    public static HashResult ComputeHash(object value, Action<HashOptions> setup = null)
    Parameters
    Type Name Description
    System.Object value

    The object to compute a hash code for.

    System.Action<HashOptions> setup

    The HashOptions which need to be configured.

    Returns
    Type Description
    HashResult

    A HashResult containing the computed hash value of the specified value.

    | Improve this Doc

    ComputeHash(Object[], Action<HashOptions>)

    Combines a sequence of objects into one object, and computes a hash value of the specified values.

    Declaration
    public static HashResult ComputeHash(object[] values, Action<HashOptions> setup = null)
    Parameters
    Type Name Description
    System.Object[] values

    The objects to compute a hash code for.

    System.Action<HashOptions> setup

    The HashOptions which need to be configured.

    Returns
    Type Description
    HashResult

    A HashResult containing the computed hash value of the specified object sequence values.

    | Improve this Doc

    ComputeHash(String, Action<StringHashOptions>)

    Computes a hash value of the specified value.

    Declaration
    public static HashResult ComputeHash(string value, Action<StringHashOptions> setup = null)
    Parameters
    Type Name Description
    System.String value

    The System.String to compute a hash code for.

    System.Action<StringHashOptions> setup

    The StringHashOptions which need to be configured.

    Returns
    Type Description
    HashResult

    A HashResult containing the computed hash value of the specified value.

    | Improve this Doc

    ComputeHash(String[], Action<StringHashOptions>)

    Computes a hash value of the specified values.

    Declaration
    public static HashResult ComputeHash(string[] values, Action<StringHashOptions> setup = null)
    Parameters
    Type Name Description
    System.String[] values

    The System.String array to compute a hash code for.

    System.Action<StringHashOptions> setup

    The StringHashOptions which need to be configured.

    Returns
    Type Description
    HashResult

    A HashResult containing the computed hash value of the specified values.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX