Whiteflag JavaScript Library - v1.0.0
    Preparing search index...
    • 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: AlgorithmIdentifier = HASHALG

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

      Returns Promise<Uint8Array<ArrayBuffer>>

      the hash value