Compute a SHA-256 digest for a given byte array.
Uses the native crypto implementation and falls back to noble.
The SHA-256 hash as a byte array.
A byte array.
Compute a SHA-256 digest for a given byte array.
Uses the native crypto implementation and falls back to noble.
Returns
The SHA-256 hash as a byte array.