Show / Hide Table of Contents

    Class KraangAuthenticator

    Kraang uses the following algorithm to generate a signature:

    1. Sort the data by key alphabetically.
    2. Zipper sort the data.
    3. Reverse the data.
    4. Create a Querystring from the sorted data.
    5. Append the secret to the Querystring.
    6. Hash the appended string with HMACSHA1.
    7. Base64 encode the result into a string.
    Inheritance
    Object
    KraangAuthenticator
    Namespace: IdleKit.Analytics.Kraang
    Assembly: cs.temp.dll.dll
    Syntax
    public class KraangAuthenticator : IAuthenticator

    Fields

    _additionalCharacterEncodeMap

    Declaration
    protected Hashtable _additionalCharacterEncodeMap
    Field Value
    Type Description
    Hashtable

    _upperCaseCharacters

    Declaration
    protected Regex _upperCaseCharacters
    Field Value
    Type Description
    Regex

    Methods

    EscapeString(String)

    Declaration
    protected virtual string EscapeString(string value)
    Parameters
    Type Name Description
    String value
    Returns
    Type Description
    String

    FormatData(IDictionary)

    Declaration
    protected virtual string FormatData(IDictionary data)
    Parameters
    Type Name Description
    IDictionary data
    Returns
    Type Description
    String

    Inject(IResolver)

    Declaration
    public virtual void Inject(IResolver resolver)
    Parameters
    Type Name Description
    IResolver resolver

    Sign(IDictionary, String)

    Declaration
    public virtual string Sign(IDictionary data, string secret)
    Parameters
    Type Name Description
    IDictionary data
    String secret
    Returns
    Type Description
    String
    Back to top Copyright © 2020 East Side Games Inc.