Function hmac

  • Hmac hash of the given string using the given algorithm.

    Parameters

    • algorithm: string

      The algorithm to use

    • key: string | Buffer

      The key to use

    • data: string | Object | Buffer

      The data to encrypt

    • outputFormat: BinaryToTextEncoding

      The output format

    Returns string

Generated using TypeDoc