whiteflag-js
    Preparing search index...

    Function hash

    • Function

      Basic hashing function hash

      Parameters

      • data: Uint8Array<ArrayBuffer>

        data to hash

      • length: number = HASHLEN

        the required output length in octets; default is 32

      • algorithm: string = HASHALG

        the hash algorithm to be used; default is SHA-256

      Returns Promise<Uint8Array<ArrayBuffer>>

      the hash value