- sha256(
bytes: string | Uint8Array<ArrayBufferLike>,
opts?: { output: "string" },
): Promise<string> Parameters
- bytes: string | Uint8Array<ArrayBufferLike>
Optional
opts: { output: "string" }
Returns Promise<string>
- sha256(
bytes: string | Uint8Array<ArrayBufferLike>,
opts: { output: "bytes" },
): Promise<Uint8Array> Parameters
- bytes: string | Uint8Array<ArrayBufferLike>
- opts: { output: "bytes" }
Returns Promise<Uint8Array>
Create a sha-256 hash of the given
Uint8Array
.Param: bytes
The input bytes
Returns
A
Uint8Array