Function strHashToUint32Array

  • Hash a string into an array of unsigned 32-bit integers.

    Parameters

    • string: string

      The string to hash

    • algorithm: TCryptoAlgorithm = 'sha256'

      sha1 | sha256 | sha512 | md5 | etc...

    Returns Uint32Array

    Throws

    Will throw an error if the hashing algorithm is not supported.

    See

    crypto.getHashes for a list of accepted strings for 'algorithm'

    Example

    strHash.toUint32Array('hello')
    //=> Uint32Array(8) [3125670444, 245608543, 708569126, 2665658821, 1545475611, 1581426463, 1647510643, 613976979]

Generated using TypeDoc