Options
All
  • Public
  • Public/Protected
  • All
Menu

An array of 32-bit words.

Hierarchy

  • WordArray

Index

Properties

sigBytes

sigBytes: number

The number of significant bytes in this word array.

words

words: number[]

The array of 32-bit words.

Methods

clamp

  • clamp(): void
  • Removes insignificant bits.

    example
    wordArray.clamp();
    

    Returns void

clone

  • Creates a copy of this word array.

    example
    var clone = wordArray.clone();
    

    Returns cryptojs.lib.WordArray

    The clone.

concat

  • Concatenates a word array to this word array.

    example
    wordArray1.concat(wordArray2);
    

    Parameters

    Returns cryptojs.lib.WordArray

    This word array.

toString

  • toString(encoder?: Encoder): string
  • Converts this word array to a string.

    example
    var string = wordArray + '';
    var string = wordArray.toString();
    var string = wordArray.toString(CryptoJS.enc.Utf8);

    Parameters

    • Optional encoder: Encoder

      (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex

    Returns string

    The stringified word array.

Generated using TypeDoc