Aether Utilities Aether Utilities
Aether Utilities Aether Utilities
DocFX + Singulink = ♥

Search Results for

    Edit this page

    Struct HashOptions

    Namespace
    AetherUtils.Core.Structs
    Assembly
    AetherUtils.Core.dll
    Represents the options used for performing hashing functions. If unspecified at struct creation, the HashAlgorithm defaults to SHA384 and the Encoding defaults to Base64.

    Once created, the properties cannot be changed.

    public readonly struct HashOptions
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)

    Constructors

    HashOptions(ReadOnlyPair<int, int>)

    Create a new hash options specifying the iterations.
    [UsedImplicitly]
    public HashOptions(ReadOnlyPair<int, int> iterations)

    Parameters

    iterations ReadOnlyPair<int, int>

    HashOptions(ReadOnlyPair<int, int>, HashEncoding)

    Create a new hash options specifying the iterations and the hash encoding.
    [UsedImplicitly]
    public HashOptions(ReadOnlyPair<int, int> iterations, HashEncoding hashEncoding)

    Parameters

    iterations ReadOnlyPair<int, int>
    hashEncoding HashEncoding

    HashOptions(ReadOnlyPair<int, int>, HashAlgorithmName, HashEncoding)

    Create a new hash options specifying the iterations, the hash algorithm, and the hash encoding.
    [UsedImplicitly]
    public HashOptions(ReadOnlyPair<int, int> iterations, HashAlgorithmName hashAlgorithm, HashEncoding hashEncoding)

    Parameters

    iterations ReadOnlyPair<int, int>
    hashAlgorithm HashAlgorithmName
    hashEncoding HashEncoding

    HashOptions(int, ReadOnlyPair<int, int>, HashAlgorithmName)

    Create a new hash options specifying the salt length, the iterations, and the hash algorithm.
    [UsedImplicitly]
    public HashOptions(int saltLength, ReadOnlyPair<int, int> iterations, HashAlgorithmName hashAlgorithm)

    Parameters

    saltLength int
    iterations ReadOnlyPair<int, int>
    hashAlgorithm HashAlgorithmName

    HashOptions(int, ReadOnlyPair<int, int>, HashAlgorithmName, HashEncoding)

    Create a new hash options specifying the salt length, iterations, the hash algorithm, and the hash encoding.
    [UsedImplicitly]
    public HashOptions(int saltLength, ReadOnlyPair<int, int> iterations, HashAlgorithmName hashAlgorithm, HashEncoding hashEncoding)

    Parameters

    saltLength int
    iterations ReadOnlyPair<int, int>
    hashAlgorithm HashAlgorithmName
    hashEncoding HashEncoding

    HashOptions(int, int)

    Create a new hash options specifying the minimum and maximum iterations seperately.
    [UsedImplicitly]
    public HashOptions(int minIterations, int maxIterations)

    Parameters

    minIterations int
    maxIterations int

    HashOptions(int, int, HashEncoding)

    Create a new hash options specifying the minimum and maximum iterations and the hash encoding.
    [UsedImplicitly]
    public HashOptions(int minIterations, int maxIterations, HashEncoding hashEncoding)

    Parameters

    minIterations int
    maxIterations int
    hashEncoding HashEncoding

    HashOptions(int, int, int)

    Create a new hash options specifying the salt length and the minimum and maximum iterations.
    [UsedImplicitly]
    public HashOptions(int saltLength, int minIterations, int maxIterations)

    Parameters

    saltLength int
    minIterations int
    maxIterations int

    HashOptions(int, int, int, int)

    Create a new hash options specifying the salt length, the key size, and the minimum and maximum iterations.
    [UsedImplicitly]
    public HashOptions(int saltLength, int keySize, int minIterations, int maxIterations)

    Parameters

    saltLength int
    keySize int
    minIterations int
    maxIterations int

    HashOptions(int, int, int, int, HashAlgorithmName)

    Create a new hash options specifying the salt length, the key size, the minimum and maximum iterations, and the hash algorithm.
    [UsedImplicitly]
    public HashOptions(int saltLength, int keySize, int minIterations, int maxIterations, HashAlgorithmName hashAlgorithm)

    Parameters

    saltLength int
    keySize int
    minIterations int
    maxIterations int
    hashAlgorithm HashAlgorithmName

    HashOptions(int, int, int, int, HashAlgorithmName, HashEncoding)

    Create a new hash options specifying the salt length, the key size, the minimum and maximum iterations, the hash algorithm, and the hash encoding.
    [UsedImplicitly]
    public HashOptions(int saltLength, int keySize, int minIterations, int maxIterations, HashAlgorithmName hashAlgorithm, HashEncoding hashEncoding)

    Parameters

    saltLength int
    keySize int
    minIterations int
    maxIterations int
    hashAlgorithm HashAlgorithmName
    hashEncoding HashEncoding

    HashOptions(int, int, HashAlgorithmName)

    Create a new hash options specifying the minimum and maximum iterations and the hash algorithm.
    [UsedImplicitly]
    public HashOptions(int minIterations, int maxIterations, HashAlgorithmName hashAlgorithm)

    Parameters

    minIterations int
    maxIterations int
    hashAlgorithm HashAlgorithmName

    HashOptions(int, int, HashAlgorithmName, HashEncoding)

    Create a new hash options specifying the minimum and maximum iterations, the hash algorithm, and the hash encoding.
    [UsedImplicitly]
    public HashOptions(int minIterations, int maxIterations, HashAlgorithmName hashAlgorithm, HashEncoding hashEncoding)

    Parameters

    minIterations int
    maxIterations int
    hashAlgorithm HashAlgorithmName
    hashEncoding HashEncoding

    Properties

    Encoding

    The encoding scheme to use when hashing.
    public HashEncoding Encoding { get; }

    Property Value

    HashEncoding

    HashAlgorithm

    The algorithm to use when hashing.
    public HashAlgorithmName HashAlgorithm { get; }

    Property Value

    HashAlgorithmName

    Iterations

    The number of iterations to perform when hashing.

    A cryptographically strong random value between the minimum and maximum iterations is retrieved every time this property is retrieved.

    public int Iterations { get; }

    Property Value

    int

    KeySize

    The size (in bytes) of the hash key used when hashing.
    public int KeySize { get; }

    Property Value

    int

    SaltLength

    The length (in bytes) used for the salt when hashing.
    public int SaltLength { get; }

    Property Value

    int
    (c) 2024 Ethan Hann. All rights reserved.