Options
All
  • Public
  • Public/Protected
  • All
Menu

Module token

Functions

fastUnSecureHash

  • fastUnSecureHash(obj: string | ObjMap): number
  • Creates a hash of the object is a very fast manner, but its un-secure.

    Parameters

    • obj: string | ObjMap

      Object to be hashed.

    Returns number

    A number as hash-result.

generate

  • Generate random token.

    Parameters

    • generationType: TokenGenerationType = ...

      Token generation type.

    • length: number = ...

      Length of the token.

    Returns string

    Random token.