Function hmac_sha256

  • Computes an SHA256 HMAC. Use this if you don't need to stream the data you're hashing and can load the entire input into memory.

    Parameters

    • secret: Hashable

      The key to use for the HMAC process

    • data: Hashable

      The data to hash

    • Optional truncate_to: number

      The maximum number of bytes to receive. Leave as undefined or 0 to receive the entire digest.

    Returns DataView

Generated using TypeDoc