Options
All
  • Public
  • Public/Protected
  • All
Menu

SHA1 and SHA2

Hierarchy

  • KavenSHA

Index

Constructors

constructor

Accessors

Static SHA512_INITIAL_HASH_VALUES

  • get SHA512_INITIAL_HASH_VALUES(): BitString[]
  • SHA-512 initial hash values(in big-endian).

    These words were obtained by taking the first sixty-four bits of the fractional parts of the square roots of the first eight prime numbers.

    Returns BitString[]

Methods

ComputeSHA1

  • ComputeSHA1(str: string): string

ComputeSHA224

  • ComputeSHA224(str: string): string
  • Parameters

    • str: string

    Returns string

ComputeSHA256

  • ComputeSHA256(str: string): string

ComputeSHA384

  • ComputeSHA384(str: string): string
  • Parameters

    • str: string

    Returns string

ComputeSHA512

  • ComputeSHA512(str: string): string
  • Parameters

    • str: string

    Returns string

ComputeSHA512T

  • ComputeSHA512T(str: string, t: number): string
  • Parameters

    • str: string
    • t: number

    Returns string

Protected compute_224_256

  • compute_224_256(data: number[], initialHashValues: number[]): number[]
  • Parameters

    • data: number[]
    • initialHashValues: number[]

    Returns number[]

Protected compute_384_512

  • Parameters

    • data: number[]
    • initialHashValues: BitString[]

    Returns BitString[]

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Class
  • Class with type parameter
  • Constructor
  • Method
  • Interface
  • Interface with type parameter
  • Enumeration
  • Protected method

Generated using TypeDoc