Function hash_sha256

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

    Parameters

    • 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