Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HashContext

Hierarchy

  • HashContextBase
    • HashContext

Index

Constructors

constructor

Methods

compute

  • compute(input: DataBuffer): DataBuffer
  • compute(inputString: string): DataBuffer
  • Computes the hash.

    Parameters

    • input: DataBuffer

      The input.

    Returns DataBuffer

  • Computes the hash.

    Parameters

    • inputString: string

      The input.

    Returns DataBuffer

destroy

  • destroy(): void
  • Destroys this instance.

    Returns void

doCompute

  • doCompute(input: DataBuffer): DataBuffer
  • Parameters

    • input: DataBuffer

    Returns DataBuffer

doDestroy

  • doDestroy(): void

getType

  • getType(): HashType
  • Gets the type.

    Returns HashType

getTypeString

  • getTypeString(): string

Static compute

  • compute(type: HashType, input: DataBuffer): DataBuffer
  • compute(type: HashType, inputString: string): DataBuffer
  • Computes the hash for a given type.

    Parameters

    • type: HashType

      The type.

    • input: DataBuffer

      The input.

    Returns DataBuffer

  • Computes the hash for a given type.

    Parameters

    • type: HashType

      The type.

    • inputString: string

      The input string.

    Returns DataBuffer