Create a sha-256 hash of the given Uint8Array.

The input bytes

A Uint8Array

  • Parameters

    • bytes: string | Uint8Array<ArrayBufferLike>
    • Optionalopts: { output: "string" }

    Returns Promise<string>

  • Parameters

    • bytes: string | Uint8Array<ArrayBufferLike>
    • opts: { output: "bytes" }

    Returns Promise<Uint8Array>