Library API
    Preparing search index...

    Function signHmac

    • Computes an HMAC signature as a raw binary buffer for the provided data and secret.

      Parameters

      • data: string | BinaryData

        The string or binary data to sign

      • secret: string | BinaryData

        The secret key as a string or binary buffer

      • alg: string = 'SHA-256'

        The hash algorithm to use (default: 'SHA-256')

      Returns Promise<Uint8Array<ArrayBufferLike>>

      A promise resolving to the HMAC signature Uint8Array